Compare commits

..

No commits in common. "89f646fc6cdba25df36ad008ea7e1a4cb6388546" and "e9fef4f4d3a2ca4cfc0477d1421c42a2db66338b" have entirely different histories.

2 changed files with 1 additions and 4 deletions

View file

@ -21,7 +21,7 @@ if (PICO_SDK_VERSION_STRING VERSION_LESS "1.4.0")
message(FATAL_ERROR "Raspberry Pi Pico SDK version 1.4.0 (or later) required. Your version is ${PICO_SDK_VERSION_STRING}")
endif()
project(abfall VERSION "1.2.1" LANGUAGES C CXX ASM)
project(abfall VERSION "1.2.0" LANGUAGES C CXX ASM)
# Initialise the Raspberry Pi Pico SDK
pico_sdk_init()

View file

@ -261,14 +261,11 @@ void add_one_day(datetime_t &dt) {
dt.year += 1;
dt.month = 1;
dt.day = 1;
dt.dotw = (dt.dotw + 1) % 7;
} else if (dt.day == daysPerMonth[dt.month]) {
dt.month = (dt.month + 1) % 12;
dt.day = 1;
dt.dotw = (dt.dotw + 1) % 7;
} else {
dt.day += 1;
dt.dotw = (dt.dotw + 1) % 7;
}
}