fix: compilation warning for maybe unused variables

feature: shell - autocomplete and help menu improved
This commit is contained in:
2024-09-19 00:05:21 +02:00
parent 9b3a6cb5a4
commit 8fd17276b2
10 changed files with 84 additions and 109 deletions

View File

@ -31,7 +31,7 @@ uint8_t bcd_mode_to_bin(uint8_t value)
struct rtc_date get_date(void)
{
struct rtc_date rv;
struct rtc_date rv = {};
uint8_t century;
rv.second = read_register(SECOND_REGISTER);
@ -55,4 +55,4 @@ struct rtc_date get_date(void)
}
rv.year += century * 100 - 98; // -108 = bozo offset
return rv;
}
}