don't turn bluetooth back on every time we exit light sleep

This commit is contained in:
geeksville
2020-02-21 08:09:07 -08:00
parent 7a745c9e65
commit 132e54ecc5
7 changed files with 74 additions and 150 deletions

View File

@@ -55,6 +55,8 @@
*/
class MeshRadio {
public:
CustomRF95 rf95; // the raw radio interface - for now I'm leaving public - because this class is shrinking to be almost nothing
/** pool is the pool we will alloc our rx packets from
* rxDest is where we will send any rx packets, it becomes receivers responsibility to return packet to the pool
*/
@@ -62,9 +64,6 @@ public:
bool init();
/// Prepare the radio to enter sleep mode, where it should draw only 0.2 uA
void sleep();
/// Send a packet (possibly by enquing in a private fifo). This routine will
/// later free() the packet to pool. This routine is not allowed to stall because it is called from
/// bluetooth comms code. If the txmit queue is empty it might return an error
@@ -78,7 +77,6 @@ public:
void reloadConfig();
private:
CustomRF95 rf95; // the raw radio interface
// RHDatagram manager;
// RHReliableDatagram manager; // don't use mesh yet