Browse Source
Bridge always has work (prevents sleep)
pull/1609/head
Wessel Nieboer
4 months ago
No known key found for this signature in database
GPG Key ID: 929C8E45E33B5FD2
1 changed files with
3 additions and
0 deletions
-
examples/simple_repeater/MyMesh.cpp
|
|
|
@ -1219,5 +1219,8 @@ void MyMesh::loop() { |
|
|
|
|
|
|
|
// To check if there is pending work
|
|
|
|
bool MyMesh::hasPendingWork() const { |
|
|
|
#if defined(WITH_BRIDGE) |
|
|
|
if (bridge.isRunning()) return true; // bridge needs WiFi radio, can't sleep
|
|
|
|
#endif |
|
|
|
return _mgr->getOutboundCount(0xFFFFFFFF) > 0; |
|
|
|
} |
|
|
|
|