Skip to content

Commit bb9c751

Browse files
committed
atmel-samd: Correct fake date for FAT. Hopefully it'll be in 2016 now.
1 parent 0ba9aee commit bb9c751

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

atmel-samd/fatfs_port.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ const PARTITION VolToPart[MICROPY_FATFS_VOLUMES] = {
4242

4343
DWORD get_fattime(void) {
4444
// TODO(tannewt): Support the RTC.
45-
return ((2016) << 25) | ((9) << 21) | ((1) << 16) | ((16) << 11) | ((43) << 5) | (35 / 2);
45+
return ((2016 - 1980) << 25) | ((9) << 21) | ((1) << 16) | ((16) << 11) | ((43) << 5) | (35 / 2);
4646
}

0 commit comments

Comments
 (0)