diff options
| author | Scott Shawcroft <scott.shawcroft@gmail.com> | 2016-12-05 11:15:46 -0800 |
|---|---|---|
| committer | Scott Shawcroft <scott.shawcroft@gmail.com> | 2016-12-05 11:15:46 -0800 |
| commit | bb9c751b502a7bda49027d5ee195f8110b1493f9 (patch) | |
| tree | 4a9ac36c3bbbd5590e42bf29739044f45159c28c /atmel-samd | |
| parent | 0ba9aee428ca27d8b2cf562e3d5319d6fa9bc2ea (diff) | |
atmel-samd: Correct fake date for FAT. Hopefully it'll be in 2016 now.
Diffstat (limited to 'atmel-samd')
| -rw-r--r-- | atmel-samd/fatfs_port.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/atmel-samd/fatfs_port.c b/atmel-samd/fatfs_port.c index dcb02f613..d47b9d6af 100644 --- a/atmel-samd/fatfs_port.c +++ b/atmel-samd/fatfs_port.c @@ -42,5 +42,5 @@ const PARTITION VolToPart[MICROPY_FATFS_VOLUMES] = { DWORD get_fattime(void) { // TODO(tannewt): Support the RTC. - return ((2016) << 25) | ((9) << 21) | ((1) << 16) | ((16) << 11) | ((43) << 5) | (35 / 2); + return ((2016 - 1980) << 25) | ((9) << 21) | ((1) << 16) | ((16) << 11) | ((43) << 5) | (35 / 2); } |
