mirror of
https://github.com/SpacehuhnTech/esp8266_deauther.git
synced 2025-12-14 18:50:01 +01:00
Don't count time manually when RTC enabled
This commit is contained in:
@@ -660,10 +660,12 @@ void DisplayUI::draw() {
|
|||||||
|
|
||||||
updatePrefix();
|
updatePrefix();
|
||||||
|
|
||||||
|
#ifndef RTC_DS3231
|
||||||
if (clockTime < currentTime - 1000) {
|
if (clockTime < currentTime - 1000) {
|
||||||
setTime(clockHour, clockMinute++, clockSecond + 1);
|
setTime(clockHour, clockMinute++, clockSecond + 1);
|
||||||
clockTime += 1000;
|
clockTime += 1000;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
switch (mode) {
|
switch (mode) {
|
||||||
case DISPLAY_MODE::BUTTON_TEST:
|
case DISPLAY_MODE::BUTTON_TEST:
|
||||||
|
|||||||
Reference in New Issue
Block a user