mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
cli_gps: use sensormanger to toggle gps on/off to keep state coherent
This commit is contained in:
parent
0502bc370d
commit
e4f2d63b0a
4 changed files with 36 additions and 15 deletions
|
|
@ -142,6 +142,9 @@ protected:
|
|||
void onPeerDataRecv(mesh::Packet* packet, uint8_t type, int sender_idx, const uint8_t* secret, uint8_t* data, size_t len) override;
|
||||
bool onPeerPathRecv(mesh::Packet* packet, int sender_idx, const uint8_t* secret, uint8_t* path, uint8_t path_len, uint8_t extra_type, uint8_t* extra, uint8_t extra_len) override;
|
||||
|
||||
bool gpsGetState();
|
||||
void gpsSetState(bool value);
|
||||
|
||||
public:
|
||||
MyMesh(mesh::MainBoard& board, mesh::Radio& radio, mesh::MillisecondClock& ms, mesh::RNG& rng, mesh::RTCClock& rtc, mesh::MeshTables& tables);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue