From a29fba2fa26979b6e7ced5d4049365ea1d8f15fb Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Wed, 26 Jun 2019 16:28:35 +0100 Subject: [PATCH] It's the SD card library that's using all our RAM! --- iot/main/main.ino | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/iot/main/main.ino b/iot/main/main.ino index beb7796..38394cd 100644 --- a/iot/main/main.ino +++ b/iot/main/main.ino @@ -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); // ------------------------------------------------------------------------