Compare commits
2 commits
e9fef4f4d3
...
89f646fc6c
Author | SHA1 | Date | |
---|---|---|---|
89f646fc6c | |||
5b12a9cd16 |
2 changed files with 4 additions and 1 deletions
|
@ -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.0" LANGUAGES C CXX ASM)
|
||||
project(abfall VERSION "1.2.1" LANGUAGES C CXX ASM)
|
||||
|
||||
# Initialise the Raspberry Pi Pico SDK
|
||||
pico_sdk_init()
|
||||
|
|
|
@ -261,11 +261,14 @@ 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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue