Skip to content

Commit

Permalink
fix 49.7 day systick rollover
Browse files Browse the repository at this point in the history
  • Loading branch information
Trevor Jordan committed Feb 8, 2015
1 parent 0508690 commit bb92b25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/systick/systick.c
Expand Up @@ -78,11 +78,11 @@ volatile uint32_t systickRollovers = 0;
/**************************************************************************/
void SysTick_Handler (void)
{
systickTicks++;

// Increment rollover counter
if (systickTicks == 0xFFFFFFFF) systickRollovers++;

systickTicks++;

#ifdef CFG_SDCARD
fatTicks++;
if (fatTicks == 10)
Expand Down

0 comments on commit bb92b25

Please sign in to comment.