Telemetry phone api guard (#1805)

* Delay start of telemetry modules

* Don't send unless our toPhoneQueue is empty

* Get wrecked, checks!
This commit is contained in:
Ben Meadors
2022-10-16 09:58:58 -05:00
committed by GitHub
parent 44529620ad
commit 45f9dee89a
6 changed files with 15 additions and 4 deletions

View File

@@ -89,6 +89,8 @@ class MeshService
/// Send a packet to the phone
void sendToPhone(MeshPacket *p);
bool isToPhoneQueueEmpty();
private:
/// Called when our gps position has changed - updates nodedb and sends Location message out into the mesh
/// returns 0 to allow futher processing