projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Oops - fix broken FAT_DATE() and FAT_TIME() macros.
[pub/USBasp.git]
/
Bootloaders
/
Incomplete
/
MassStorage
/
Lib
/
VirtualFAT.h
diff --git
a/Bootloaders/Incomplete/MassStorage/Lib/VirtualFAT.h
b/Bootloaders/Incomplete/MassStorage/Lib/VirtualFAT.h
index
66b5824
..
af45488
100644
(file)
--- 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
*/
*
* \return Given time encoded as a FAT filesystem timestamp
*/
- #define FAT_TIME(h
, m, s)
((hh << 11) | (mm << 5) | (ss >> 1))
+ #define FAT_TIME(h
h, 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(d
d, mm, yyyy)
(((yyyy - 1980) << 9) | (mm << 5) | (dd << 0))
/* Type Definitions: */
/** FAT boot block structure definition, used to identify the core
/* Type Definitions: */
/** FAT boot block structure definition, used to identify the core