Skip to content

Commit f6fc056

Browse files
authored
Merge pull request #1609 from weebl2000/bridge-always-has-work
Bridge always has work (prevents sleep)
2 parents 736ddbf + c4c287d commit f6fc056

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

examples/simple_repeater/MyMesh.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1219,5 +1219,8 @@ void MyMesh::loop() {
12191219

12201220
// To check if there is pending work
12211221
bool MyMesh::hasPendingWork() const {
1222+
#if defined(WITH_BRIDGE)
1223+
if (bridge.isRunning()) return true; // bridge needs WiFi radio, can't sleep
1224+
#endif
12221225
return _mgr->getOutboundCount(0xFFFFFFFF) > 0;
12231226
}

0 commit comments

Comments
 (0)