Browse Source

* T114: enabled GPS page in UITask

pull/1018/head
Scott Powell 7 months ago
parent
commit
dfb4497c7a
  1. 1
      variants/heltec_t114/platformio.ini
  2. 3
      variants/heltec_t114/target.cpp
  3. 1
      variants/heltec_t114/target.h

1
variants/heltec_t114/platformio.ini

@ -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

3
variants/heltec_t114/target.cpp

@ -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;
} }

1
variants/heltec_t114/target.h

@ -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;

Loading…
Cancel
Save