BT sleep leak now down to about 200 bytes

This commit is contained in:
geeksville
2020-02-23 18:09:40 -08:00
parent 621beadb5c
commit 419dd44ff6
6 changed files with 41 additions and 11 deletions

View File

@@ -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()