Skip to content

Commit

Permalink
Fixed RTC screwup
Browse files Browse the repository at this point in the history
  • Loading branch information
David Morris committed May 20, 2013
1 parent a3ae4ff commit 5915f86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Util/fat_fs/src/rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ static uint32_t struct_to_counter( const RTC_t *t )
if (year%400 == 0 || (year%4 == 0 && year%100 !=0)) {
;
} else {
if (t->month > 1) {
if (t->month > 2) {
result--;
}
}
Expand Down

0 comments on commit 5915f86

Please sign in to comment.