Skip to content

Commit 7d9c2f5

Browse files
author
Spacehuhn
committed
Don't count time manually when RTC enabled
2 parents c112149 + c112149 commit 7d9c2f5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

esp8266_deauther/DisplayUI.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,11 +659,13 @@ void DisplayUI::draw() {
659659
drawTime = currentTime;
660660

661661
updatePrefix();
662-
662+
663+
#ifndef RTC_DS3231
663664
if (clockTime < currentTime - 1000) {
664665
setTime(clockHour, clockMinute++, clockSecond + 1);
665666
clockTime += 1000;
666667
}
668+
#endif
667669

668670
switch (mode) {
669671
case DISPLAY_MODE::BUTTON_TEST:

0 commit comments

Comments
 (0)