aboutsummaryrefslogtreecommitdiffstats
path: root/Projects/TempDataLogger
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-07-27 11:26:47 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-07-27 11:26:47 +0000
commitbe2a7d45989f5f57b326589350a6ce5bbc835b5c (patch)
tree51785a3fbce297964c4268080e09b237098d2a79 /Projects/TempDataLogger
parentcd39c38d5f39d89da989859afd72576b4c1532aa (diff)
downloadlufa-be2a7d45989f5f57b326589350a6ce5bbc835b5c.tar.gz
lufa-be2a7d45989f5f57b326589350a6ce5bbc835b5c.tar.bz2
lufa-be2a7d45989f5f57b326589350a6ce5bbc835b5c.zip
Move over message ID specific header data to unions inside the standard TMC header structure, so that all header data is read in one chunk in the incomplete TMC demo.
Diffstat (limited to 'Projects/TempDataLogger')
-rw-r--r--Projects/TempDataLogger/TempDataLogger.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Projects/TempDataLogger/TempDataLogger.c b/Projects/TempDataLogger/TempDataLogger.c
index dd707bc08..7d88ba7bf 100644
--- a/Projects/TempDataLogger/TempDataLogger.c
+++ b/Projects/TempDataLogger/TempDataLogger.c
@@ -105,10 +105,10 @@ ISR(TIMER1_COMPA_vect, ISR_BLOCK)
if (CurrentLoggingTicks++ < LoggingInterval500MS_SRAM)
return;
- LEDs_SetAllLEDs(LEDMASK_USB_BUSY);
-
/* Reset log tick counter to prepare for next logging interval */
CurrentLoggingTicks = 0;
+
+ LEDs_SetAllLEDs(LEDMASK_USB_BUSY);
/* Only log when not connected to a USB host */
if (USB_DeviceState == DEVICE_STATE_Unattached)