* T114: enabled GPS page in UITask
This commit is contained in:
@@ -170,6 +170,7 @@ build_flags =
|
|||||||
-D MAX_CONTACTS=350
|
-D MAX_CONTACTS=350
|
||||||
-D MAX_GROUP_CHANNELS=40
|
-D MAX_GROUP_CHANNELS=40
|
||||||
-D BLE_PIN_CODE=123456
|
-D BLE_PIN_CODE=123456
|
||||||
|
-D ENV_INCLUDE_GPS=1 ; enable the GPS page in UI
|
||||||
; -D BLE_DEBUG_LOGGING=1
|
; -D BLE_DEBUG_LOGGING=1
|
||||||
-D OFFLINE_QUEUE_SIZE=256
|
-D OFFLINE_QUEUE_SIZE=256
|
||||||
; -D MESH_PACKET_LOGGING=1
|
; -D MESH_PACKET_LOGGING=1
|
||||||
|
|||||||
@@ -74,11 +74,10 @@ bool T114SensorManager::begin() {
|
|||||||
|
|
||||||
if (gps_detected) {
|
if (gps_detected) {
|
||||||
MESH_DEBUG_PRINTLN("GPS detected");
|
MESH_DEBUG_PRINTLN("GPS detected");
|
||||||
digitalWrite(GPS_EN, LOW); // Power off GPS until the setting is changed
|
|
||||||
} else {
|
} else {
|
||||||
MESH_DEBUG_PRINTLN("No GPS detected");
|
MESH_DEBUG_PRINTLN("No GPS detected");
|
||||||
digitalWrite(GPS_EN, LOW);
|
|
||||||
}
|
}
|
||||||
|
digitalWrite(GPS_EN, LOW); // Power off GPS until the setting is changed
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ public:
|
|||||||
bool begin() override;
|
bool begin() override;
|
||||||
bool querySensors(uint8_t requester_permissions, CayenneLPP& telemetry) override;
|
bool querySensors(uint8_t requester_permissions, CayenneLPP& telemetry) override;
|
||||||
void loop() override;
|
void loop() override;
|
||||||
|
LocationProvider* getLocationProvider() override { return gps_detected ? _location : NULL; }
|
||||||
int getNumSettings() const override;
|
int getNumSettings() const override;
|
||||||
const char* getSettingName(int i) const override;
|
const char* getSettingName(int i) const override;
|
||||||
const char* getSettingValue(int i) const override;
|
const char* getSettingValue(int i) const override;
|
||||||
|
|||||||
Reference in New Issue
Block a user