Merge pull request #526 from oltaco/uitask-add-gps-alert

add GPS UI alert to quad-press
Este cometimento está contido em:
ripplebiz
2025-07-16 23:04:39 +10:00
cometido por GitHub
ascendente 3358783039 57f93a4196
cometimento 122f5fa10a
+4
Ver ficheiro
@@ -408,8 +408,12 @@ void UITask::handleButtonQuadruplePress() {
if (strcmp(_sensors->getSettingName(i), "gps") == 0) { if (strcmp(_sensors->getSettingName(i), "gps") == 0) {
if (strcmp(_sensors->getSettingValue(i), "1") == 0) { if (strcmp(_sensors->getSettingValue(i), "1") == 0) {
_sensors->setSettingValue("gps", "0"); _sensors->setSettingValue("gps", "0");
soundBuzzer(UIEventType::ack);
sprintf(_alert, "GPS: Disabled");
} else { } else {
_sensors->setSettingValue("gps", "1"); _sensors->setSettingValue("gps", "1");
soundBuzzer(UIEventType::ack);
sprintf(_alert, "GPS: Enabled");
} }
break; break;
} }