fix: compilation warning for maybe unused variables
feature: shell - autocomplete and help menu improved
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user