mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-17 21:22:05 +00:00
Fix TempDataLogger project logging interval always being 500ms more than the requested interval.
This commit is contained in:
parent
c505ba047f
commit
ef4cff29c3
@ -102,7 +102,7 @@ ISR(TIMER1_COMPA_vect, ISR_BLOCK)
|
|||||||
uint8_t LEDMask = LEDs_GetLEDs();
|
uint8_t LEDMask = LEDs_GetLEDs();
|
||||||
|
|
||||||
/* Check to see if the logging interval has expired */
|
/* Check to see if the logging interval has expired */
|
||||||
if (CurrentLoggingTicks++ < LoggingInterval500MS_SRAM)
|
if (++CurrentLoggingTicks < LoggingInterval500MS_SRAM)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* Reset log tick counter to prepare for next logging interval */
|
/* Reset log tick counter to prepare for next logging interval */
|
||||||
|
@ -72,11 +72,8 @@
|
|||||||
/** LED mask for the library LED driver, to indicate that the USB interface is busy. */
|
/** LED mask for the library LED driver, to indicate that the USB interface is busy. */
|
||||||
#define LEDMASK_USB_BUSY LEDS_LED2
|
#define LEDMASK_USB_BUSY LEDS_LED2
|
||||||
|
|
||||||
/** Filename for the log data when written to the dataflash FAT filesystem. */
|
|
||||||
#define LOG_FILENAME "TEMPLOG.txt"
|
|
||||||
|
|
||||||
/** Default log interval when the EEPROM is blank, in 500ms ticks. */
|
/** Default log interval when the EEPROM is blank, in 500ms ticks. */
|
||||||
#define DEFAULT_LOG_INTERVAL 20
|
#define DEFAULT_LOG_INTERVAL 10
|
||||||
|
|
||||||
/** Indicates if the disk is write protected or not. */
|
/** Indicates if the disk is write protected or not. */
|
||||||
#define DISK_READ_ONLY false
|
#define DISK_READ_ONLY false
|
||||||
|
Loading…
Reference in New Issue
Block a user