From dddb709c433f688597f6b8d8130eb42bd8d1667e Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Sun, 10 Mar 2013 09:21:57 +0000 Subject: [PATCH] Oops - fix broken FAT_DATE() and FAT_TIME() macros. --- Bootloaders/Incomplete/MassStorage/Lib/VirtualFAT.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Bootloaders/Incomplete/MassStorage/Lib/VirtualFAT.h b/Bootloaders/Incomplete/MassStorage/Lib/VirtualFAT.h index 66b5824173..af45488981 100644 --- a/Bootloaders/Incomplete/MassStorage/Lib/VirtualFAT.h +++ b/Bootloaders/Incomplete/MassStorage/Lib/VirtualFAT.h @@ -80,7 +80,7 @@ * * \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. * @@ -90,7 +90,7 @@ * * \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: */ /** FAT boot block structure definition, used to identify the core