* T114: enabled GPS page in UITask

This commit is contained in:
Scott Powell
2025-10-23 21:44:52 +11:00
parent f27e8ba6b2
commit dfb4497c7a
3 changed files with 3 additions and 2 deletions

View File

@@ -170,6 +170,7 @@ build_flags =
-D MAX_CONTACTS=350
-D MAX_GROUP_CHANNELS=40
-D BLE_PIN_CODE=123456
-D ENV_INCLUDE_GPS=1 ; enable the GPS page in UI
; -D BLE_DEBUG_LOGGING=1
-D OFFLINE_QUEUE_SIZE=256
; -D MESH_PACKET_LOGGING=1

View File

@@ -74,11 +74,10 @@ bool T114SensorManager::begin() {
if (gps_detected) {
MESH_DEBUG_PRINTLN("GPS detected");
digitalWrite(GPS_EN, LOW); // Power off GPS until the setting is changed
} else {
MESH_DEBUG_PRINTLN("No GPS detected");
digitalWrite(GPS_EN, LOW);
}
digitalWrite(GPS_EN, LOW); // Power off GPS until the setting is changed
return true;
}

View File

@@ -30,6 +30,7 @@ public:
bool begin() override;
bool querySensors(uint8_t requester_permissions, CayenneLPP& telemetry) override;
void loop() override;
LocationProvider* getLocationProvider() override { return gps_detected ? _location : NULL; }
int getNumSettings() const override;
const char* getSettingName(int i) const override;
const char* getSettingValue(int i) const override;