]> granicus.if.org Git - esp-idf/commit
vfs/fatfs: use structures with bit fields for FAT date/time
authorIvan Grokhotkov <ivan@espressif.com>
Fri, 8 Dec 2017 12:03:24 +0000 (20:03 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Wed, 27 Dec 2017 08:54:19 +0000 (16:54 +0800)
commitf4554c81fc741e89b92c20788c347902467389f0
tree577620f13e722a4594b1127adc6a8736679fa3be
parent96be8f2efa2d41e839265dc65806788d384575f0
vfs/fatfs: use structures with bit fields for FAT date/time

Replace explicit masks and shifts with bit fields when working with FATFS date and time representations. Also zero-initialize remaining members of struct tm.

Fixes https://github.com/espressif/esp-idf/issues/1369.
components/fatfs/src/vfs_fat.c