Permalink
Browse files

Merge pull request #45 from mashua/fatfs_fix

Fix for return value of get_fattime
  • Loading branch information...
2 parents 77388ab + 41f7a6f commit 0b2f8db85196a3ba78b609c458db5ddfa24f529f @mashua mashua committed on GitHub Jul 20, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 cubeMX/obc/Src/fatfs.c
@@ -66,7 +66,7 @@ DWORD get_fattime(void)
((tmp.month) << 21) | \
((tmp.day) << 16) | \
((tmp.hour) << 11) | \
- ((tmp.hour) << 5) | \
+ ((tmp.min) << 5) | \
((tmp.sec) >> 1));
/* USER CODE END get_fattime */

0 comments on commit 0b2f8db

Please sign in to comment.