Browse Source

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

master
Starbeamrainbowlabs 3 years ago
parent
commit
a29fba2fa2
  1. 7
      iot/main/main.ino

7
iot/main/main.ino

@ -17,7 +17,6 @@ @@ -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() { @@ -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…
Cancel
Save