mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
* refactored SensorManager::toggleGps()
This commit is contained in:
parent
27388fcf2a
commit
b865ac6c23
3 changed files with 12 additions and 5 deletions
|
|
@ -28,8 +28,6 @@ public:
|
|||
const char* getSettingName(int i) const override;
|
||||
const char* getSettingValue(int i) const override;
|
||||
bool setSettingValue(const char* name, const char* value) override;
|
||||
bool getGpsStatus() override { return gps_active; }
|
||||
bool toggleGps() override { gps_active ? sleep_gps() : start_gps(); return gps_active; }
|
||||
};
|
||||
|
||||
#ifdef DISPLAY_CLASS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue