Oops - fix broken FAT_DATE() and FAT_TIME() macros.

This commit is contained in:
Dean Camera 2013-03-10 09:21:57 +00:00
parent df9b04c87f
commit dddb709c43
1 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@
* *
* \return Given time encoded as a FAT filesystem timestamp * \return Given time encoded as a FAT filesystem timestamp
*/ */
#define FAT_TIME(h, m, s) ((hh << 11) | (mm << 5) | (ss >> 1)) #define FAT_TIME(hh, mm, ss) ((hh << 11) | (mm << 5) | (ss >> 1))
/** Converts a given date in DD/MM/YYYY format to a FAT filesystem date. /** Converts a given date in DD/MM/YYYY format to a FAT filesystem date.
* *
@ -90,7 +90,7 @@
* *
* \return Given date encoded as a FAT filesystem datestamp * \return Given date encoded as a FAT filesystem datestamp
*/ */
#define FAT_DATE(d, m, y) (((yyyy - 1980) << 9) | (mm << 5) | (dd << 0)) #define FAT_DATE(dd, mm, yyyy) (((yyyy - 1980) << 9) | (mm << 5) | (dd << 0))
/* Type Definitions: */ /* Type Definitions: */
/** FAT boot block structure definition, used to identify the core /** FAT boot block structure definition, used to identify the core