diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-01-24 13:38:20 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-01-24 13:38:20 +0000 |
commit | 871d9bf1af06fe208ca16cb3b19722bec1300e63 (patch) | |
tree | 77f5550a3c8ee63677471cdf4add36d48d448243 /Projects/TemperatureDataLogger | |
parent | dd995683ea1f233b79724d524a9a3dbcdc171d30 (diff) | |
download | lufa-871d9bf1af06fe208ca16cb3b19722bec1300e63.tar.gz lufa-871d9bf1af06fe208ca16cb3b19722bec1300e63.tar.bz2 lufa-871d9bf1af06fe208ca16cb3b19722bec1300e63.zip |
Fixed DFU bootloader programming not discarding the correct number of filler bytes from the host when non-aligned programming ranges are specified (thanks to Thomas Bleeker).
Diffstat (limited to 'Projects/TemperatureDataLogger')
-rw-r--r-- | Projects/TemperatureDataLogger/TempDataLogger.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Projects/TemperatureDataLogger/TempDataLogger.c b/Projects/TemperatureDataLogger/TempDataLogger.c index 538a6a5e8..2f2e8daf7 100644 --- a/Projects/TemperatureDataLogger/TempDataLogger.c +++ b/Projects/TemperatureDataLogger/TempDataLogger.c @@ -96,6 +96,7 @@ FATFS DiskFATState; FIL TempLogFile;
+/** ISR to handle the 500ms ticks for sampling and data logging */
ISR(TIMER1_COMPA_vect, ISR_BLOCK)
{
uint8_t LEDMask = LEDs_GetLEDs();
@@ -157,6 +158,7 @@ int main(void) }
}
+/** Opens the log file on the Dataflash's FAT formatted partition according to the current date */
void OpenLogFile(void)
{
char LogFileName[12];
@@ -172,6 +174,7 @@ void OpenLogFile(void) f_lseek(&TempLogFile, TempLogFile.fsize);
}
+/** Closes the open data log file on the Dataflash's FAT formatted partition */
void CloseLogFile(void)
{
/* Sync any data waiting to be written, unmount the storage device */
@@ -301,6 +304,7 @@ void CALLBACK_HID_Device_ProcessHIDReport(USB_ClassInfo_HID_Device_t* const HIDI DS1307_SetDate(ReportParams->Day, ReportParams->Month, ReportParams->Year);
DS1307_SetTime(ReportParams->Hour, ReportParams->Minute, ReportParams->Second);
+ /* If the logging interval has changed from its current value, write it to EEPROM */
if (LoggingInterval500MS_SRAM != ReportParams->LogInterval500MS)
{
LoggingInterval500MS_SRAM = ReportParams->LogInterval500MS;
|