Fix TempDataLogger project logging interval always being 500ms more than the requested interval.
This commit is contained in:
parent
c505ba047f
commit
ef4cff29c3
2 changed files with 2 additions and 5 deletions
|
@ -102,7 +102,7 @@ ISR(TIMER1_COMPA_vect, ISR_BLOCK)
|
|||
uint8_t LEDMask = LEDs_GetLEDs();
|
||||
|
||||
/* Check to see if the logging interval has expired */
|
||||
if (CurrentLoggingTicks++ < LoggingInterval500MS_SRAM)
|
||||
if (++CurrentLoggingTicks < LoggingInterval500MS_SRAM)
|
||||
return;
|
||||
|
||||
/* Reset log tick counter to prepare for next logging interval */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue