From 7d6f22c4e652986c42b87c42f9ebe23000b6ba17 Mon Sep 17 00:00:00 2001 From: azzar Date: Mon, 18 Apr 2022 17:23:52 +0700 Subject: [PATCH] Update DisplayUI.cpp (#1540) replace wrong comments --- esp8266_deauther/DisplayUI.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/esp8266_deauther/DisplayUI.cpp b/esp8266_deauther/DisplayUI.cpp index 07fb14a..34d953c 100644 --- a/esp8266_deauther/DisplayUI.cpp +++ b/esp8266_deauther/DisplayUI.cpp @@ -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 -} \ No newline at end of file +}