mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
* T114: enabled GPS page in UITask
This commit is contained in:
parent
f27e8ba6b2
commit
dfb4497c7a
3 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue