Add isGPSDetected() capability probe to SensorManager

Lets applications know whether a GPS was actually detected
(EnvironmentSensorManager reports its gps_detected state), e.g. to
hide GPS-dependent UI when no receiver is attached.
This commit is contained in:
João Brázio committed 2026-09-04 21:04:20 +01:00
1 parent 4606918fad
commit 9c592b7ace
2 files changed
+2

No files matched your search

@@ -38,6 +38,7 @@ public:
#if ENV_INCLUDE_GPS
EnvironmentSensorManager(LocationProvider &location): _location(&location){};
LocationProvider* getLocationProvider() { return _location; }
bool isGPSDetected() const override { return gps_detected; }
#else
EnvironmentSensorManager(){};
#endif