One place where I have found a bug is in 'fatfs_port.c' -
Code: Select all
MP_WEAK DWORD get_fattime(void) {
datetime_t t;
rtc_get_datetime(&t);
return ((2000 + t.year - 1980) << 25) | ((t.month) << 21) | ((t.day) << 16) | ((t.hour) << 11) | ((t.min) << 5) | (t.sec / 2);
}
Thankfully 'datetime_t' appears to be port specific and only used in 'main.c', 'machine_rtc.c', 'modutime.c', 'fatfs_port.c' and ''mphalport.c".
It appears that all but the last require fixing.