It's the SD card library that's using all our RAM!
This commit is contained in:
parent
35995fda3a
commit
a29fba2fa2
1 changed files with 4 additions and 3 deletions
|
@ -17,7 +17,6 @@
|
|||
void setup() {
|
||||
Serial.begin(BAUD_PC);
|
||||
Serial.println(F("[main] Starting"));
|
||||
|
||||
random_begin();
|
||||
|
||||
Serial.println(freeMemory(), DEC);
|
||||
|
@ -39,13 +38,15 @@ void setup() {
|
|||
peripheral_unsilence(PIN_SPI_CS_SD);
|
||||
|
||||
store_init();
|
||||
Serial.println(freeMemory(), DEC); // 6
|
||||
Serial.println(freeMemory(), DEC);
|
||||
store_reading(id, gps_data);
|
||||
Serial.println(freeMemory(), DEC);
|
||||
#ifdef SD_DEBUG_ENABLED
|
||||
store_debug(gps_data.time, 19);
|
||||
#endif
|
||||
Serial.println(freeMemory(), DEC);
|
||||
store_close();
|
||||
Serial.println(freeMemory(), DEC); // 7
|
||||
Serial.println(freeMemory(), DEC);
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
|
|
Loading…
Reference in a new issue