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
|
|
@ -21,5 +21,5 @@ public:
|
|||
virtual void begin() = 0;
|
||||
virtual void stop() = 0;
|
||||
virtual void loop() = 0;
|
||||
virtual bool isActive() = 0;
|
||||
virtual bool isEnabled() = 0;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ public :
|
|||
}
|
||||
}
|
||||
|
||||
bool isActive() override {
|
||||
bool isEnabled() override {
|
||||
// directly read the enable pin if present as gps can be
|
||||
// activated/deactivated outside of here ...
|
||||
if (_pin_en != -1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue