Latest
Dependencies: serial_terminal sample_hardware PLL_Config SDCard BMP280 Networkbits TextLCD SDBlockDevice
Diff: main.cpp
- Revision:
- 26:94238a308ff9
- Parent:
- 25:831dc928ccde
- Child:
- 27:bb8d4c883e1b
--- a/main.cpp Wed Dec 19 15:30:44 2018 +0000 +++ b/main.cpp Wed Dec 19 15:54:20 2018 +0000 @@ -177,9 +177,6 @@ consumer_thread.signal_set(STORE_DATA); } - - //pc->printf("%d\r\n", newestIndex); - } } @@ -190,12 +187,10 @@ static time_t seconds; - //write to the SD card from 0 up to newestIndex. + //write to the SD card from oldestindex up to newestIndex. Thread::signal_wait(STORE_DATA); redLED = 1; - //DO THIS IF THE SD CARD IS INITIALISED - char fileDate[30]; timeLock.lock(); seconds = time(NULL);