We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 699d1cd commit 500a46cCopy full SHA for 500a46c
1 file changed
variants/t1000-e/target.cpp
@@ -151,7 +151,14 @@ bool T1000SensorManager::begin() {
151
152
bool T1000SensorManager::querySensors(uint8_t requester_permissions, CayenneLPP& telemetry) {
153
if (requester_permissions & TELEM_PERM_LOCATION) { // does requester have permission?
154
- telemetry.addGPS(TELEM_CHANNEL_SELF, node_lat, node_lon, node_altitude);
+ if (gps_active) {
155
+ telemetry.addGPS(TELEM_CHANNEL_SELF, node_lat, node_lon, node_altitude);
156
+ } else {
157
+ start_gps();
158
+ // TODO: wait for fix
159
+ stop_gps();
160
161
+ }
162
}
163
if (requester_permissions & TELEM_PERM_ENVIRONMENT) {
164
// Firmware reports light as a 0-100 % scale, but expose it via Luminosity so app labels it "Luminosity".
0 commit comments