From 8694114bccae4f47436e11433d8687d77b747226 Mon Sep 17 00:00:00 2001 From: kraus Date: Sun, 6 Jan 2019 09:51:37 +0100 Subject: [PATCH] fixed day calculation --- sys/arduino/u8g2_page_buffer/AirQuality/AirQuality.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/arduino/u8g2_page_buffer/AirQuality/AirQuality.ino b/sys/arduino/u8g2_page_buffer/AirQuality/AirQuality.ino index ac230278..275d2c41 100644 --- a/sys/arduino/u8g2_page_buffer/AirQuality/AirQuality.ino +++ b/sys/arduino/u8g2_page_buffer/AirQuality/AirQuality.ino @@ -362,7 +362,8 @@ ISR(WDT_vect) wdt_min = 0; wdt_hour++; if ( wdt_hour >= 24 ) - { + { + wdt_hour = 0; wdt_day++; } }