Skip to content
Snippets Groups Projects
Unverified Commit fce5d5e9 authored by eugene7646's avatar eugene7646 Committed by GitHub
Browse files

Merge pull request #2669 from msuhanov/develop

Fix the issue #2663.
parents e6d1cf4a fd66f3a6
No related branches found
No related tags found
No related merge requests found
...@@ -149,7 +149,7 @@ fatfs_dos_2_unix_time(uint16_t date, uint16_t time, uint8_t timetens) ...@@ -149,7 +149,7 @@ fatfs_dos_2_unix_time(uint16_t date, uint16_t time, uint8_t timetens)
tm1.tm_sec = 0; tm1.tm_sec = 0;
/* The ctimetens value has a range of 0 to 199 */ /* The ctimetens value has a range of 0 to 199 */
if (timetens > 100) if (timetens >= 100)
tm1.tm_sec++; tm1.tm_sec++;
tm1.tm_min = ((time & FATFS_MIN_MASK) >> FATFS_MIN_SHIFT); tm1.tm_min = ((time & FATFS_MIN_MASK) >> FATFS_MIN_SHIFT);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment