Skip to content
This repository was archived by the owner on Feb 16, 2025. It is now read-only.

Commit 36056a2

Browse files
committed
Creation year issue is corrected.
1 parent e089d66 commit 36056a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FAT.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* [] Creation Date : 21-12-2014
77
*
8-
* [] Last Modified : Sat 27 Dec 2014 12:29:09 PM IRST
8+
* [] Last Modified : Sat 27 Dec 2014 12:37:51 PM IRST
99
*
1010
* [] Created By : Parham Alvani ([email protected])
1111
* =======================================
@@ -219,7 +219,7 @@ struct tm create_time(const uint16_t create_time, const uint16_t create_date)
219219
/*
220220
* 0b1111111000000000 = 0xFE00
221221
*/
222-
file_tm.tm_year = ((create_date & 0xFE) >> 9) + 80;
222+
file_tm.tm_year = ((create_date & 0xFE00) >> 9) + 80;
223223

224224
/*
225225
* 0b0000000111100000 = 0x1E0

0 commit comments

Comments
 (0)