BT sleep leak now down to about 200 bytes
This commit is contained in:
1 parent
621beadb5c
commit
419dd44ff6
6 files changed
+41
-11
No files matched your search
+2
-1
@@ -20,7 +20,8 @@ CustomRF95::CustomRF95(MemoryPool<MeshPacket> &_pool, PointerQueue<MeshPacket> &
|
||||
|
||||
bool CustomRF95::canSleep()
|
||||
{
|
||||
return (_mode == RHModeIdle || _mode == RHModeRx) && txQueue.isEmpty(); // FIXME - also check if we have started receiving
|
||||
// We allow initializing mode, because sometimes while testing we don't ever call init() to turn on the hardware
|
||||
return (_mode == RHModeInitialising || _mode == RHModeIdle || _mode == RHModeRx) && txQueue.isEmpty(); // FIXME - also check if we have started receiving
|
||||
}
|
||||
|
||||
bool CustomRF95::sleep()
|
||||
|
||||
Reference in new issue
Block a user