cli_gps: use sensormanger to toggle gps on/off to keep state coherent

This commit is contained in:
Florent 2025-10-05 20:31:25 +02:00
parent 0502bc370d
commit e4f2d63b0a
4 changed files with 36 additions and 15 deletions

View file

@ -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;
};

View file

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