File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -170,6 +170,7 @@ build_flags =
170170 -D MAX_CONTACTS =350
171171 -D MAX_GROUP_CHANNELS =40
172172 -D BLE_PIN_CODE =123456
173+ -D ENV_INCLUDE_GPS =1 ; enable the GPS page in UI
173174; -D BLE_DEBUG_LOGGING=1
174175 -D OFFLINE_QUEUE_SIZE =256
175176; -D MESH_PACKET_LOGGING=1
Original file line number Diff line number Diff line change @@ -74,11 +74,10 @@ bool T114SensorManager::begin() {
7474
7575 if (gps_detected) {
7676 MESH_DEBUG_PRINTLN (" GPS detected" );
77- digitalWrite (GPS_EN, LOW); // Power off GPS until the setting is changed
7877 } else {
7978 MESH_DEBUG_PRINTLN (" No GPS detected" );
80- digitalWrite (GPS_EN, LOW);
8179 }
80+ digitalWrite (GPS_EN, LOW); // Power off GPS until the setting is changed
8281
8382 return true ;
8483}
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ class T114SensorManager : public SensorManager {
3030 bool begin () override ;
3131 bool querySensors (uint8_t requester_permissions, CayenneLPP& telemetry) override ;
3232 void loop () override ;
33+ LocationProvider* getLocationProvider () override { return gps_detected ? _location : NULL ; }
3334 int getNumSettings () const override ;
3435 const char * getSettingName (int i) const override ;
3536 const char * getSettingValue (int i) const override ;
You can’t perform that action at this time.
0 commit comments