It's the SD card library that's using all our RAM!

This commit is contained in:
Starbeamrainbowlabs 2019-06-26 16:28:35 +01:00
parent 35995fda3a
commit a29fba2fa2

View file

@ -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);
// ------------------------------------------------------------------------