Skip to content

Commit dfb4497

Browse files
author
Scott Powell
committed
* T114: enabled GPS page in UITask
1 parent f27e8ba commit dfb4497

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

variants/heltec_t114/platformio.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

variants/heltec_t114/target.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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
}

variants/heltec_t114/target.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)