rp2/fatfs_port: Fix the modification date of files.

It was off by 2000 % 128 == 80 years.

Addresses issue #9535.
pull/9630/head
robert-hh 2022-10-07 21:08:08 +02:00 zatwierdzone przez Damien George
rodzic b25087fc6f
commit 92d9118038
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -30,5 +30,5 @@
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);
return ((t.year - 1980) << 25) | ((t.month) << 21) | ((t.day) << 16) | ((t.hour) << 11) | ((t.min) << 5) | (t.sec / 2);
}