Browse Source
Merge pull request #526 from oltaco/uitask-add-gps-alert
add GPS UI alert to quad-press
pull/538/head
ripplebiz
11 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
4 additions and
0 deletions
-
examples/companion_radio/UITask.cpp
|
|
|
@ -408,8 +408,12 @@ void UITask::handleButtonQuadruplePress() { |
|
|
|
if (strcmp(_sensors->getSettingName(i), "gps") == 0) { |
|
|
|
if (strcmp(_sensors->getSettingValue(i), "1") == 0) { |
|
|
|
_sensors->setSettingValue("gps", "0"); |
|
|
|
soundBuzzer(UIEventType::ack); |
|
|
|
sprintf(_alert, "GPS: Disabled"); |
|
|
|
} else { |
|
|
|
_sensors->setSettingValue("gps", "1"); |
|
|
|
soundBuzzer(UIEventType::ack); |
|
|
|
sprintf(_alert, "GPS: Enabled"); |
|
|
|
} |
|
|
|
break; |
|
|
|
} |
|
|
|
|