*/\r
int main(void)\r
{\r
- /* Fetch logging interval from EEPROM */\r
- LoggingInterval500MS_SRAM = eeprom_read_byte(&LoggingInterval500MS_EEPROM);\r
-\r
SetupHardware();\r
\r
- LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);\r
+ /* Fetch logging interval from EEPROM */\r
+ LoggingInterval500MS_SRAM = eeprom_read_byte(&LoggingInterval500MS_EEPROM);\r
\r
/* Mount and open the log file on the dataflash FAT partition */\r
OpenLogFile();\r
\r
+ LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);\r
+ sei();\r
+\r
/* Discard the first sample from the temperature sensor, as it is generally incorrect */\r
volatile uint8_t Dummy = Temperature_GetTemperature();\r
(void)Dummy;\r