Update DisplayUI.cpp (#1540)

replace wrong comments
This commit is contained in:
azzar
2022-04-18 17:23:52 +07:00
committed by GitHub
parent da75a4f954
commit 7d6f22c4e6

View File

@@ -565,7 +565,7 @@ void DisplayUI::setupButtons() {
else currentMenu->selected = 0;
} else if (mode == DISPLAY_MODE::PACKETMONITOR) { // when in packet monitor, change channel
scan.setChannel(wifi_channel - 1);
} else if (mode == DISPLAY_MODE::CLOCK) { // when in packet monitor, change channel
} else if (mode == DISPLAY_MODE::CLOCK) { // when in clock, change time
setTime(clockHour, clockMinute - 1, clockSecond);
}
}
@@ -583,7 +583,7 @@ void DisplayUI::setupButtons() {
scan.setChannel(wifi_channel - 1);
}
else if (mode == DISPLAY_MODE::CLOCK) { // when in packet monitor, change channel
else if (mode == DISPLAY_MODE::CLOCK) { // when in clock, change time
setTime(clockHour, clockMinute - 10, clockSecond);
}
}
@@ -938,4 +938,4 @@ void DisplayUI::setTime(int h, int m, int s) {
clock.setMinute(clockMinute);
clock.setSecond(clockSecond);
#endif // ifdef RTC_DS3231
}
}