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() {
|
void setup() {
|
||||||
Serial.begin(BAUD_PC);
|
Serial.begin(BAUD_PC);
|
||||||
Serial.println(F("[main] Starting"));
|
Serial.println(F("[main] Starting"));
|
||||||
|
|
||||||
random_begin();
|
random_begin();
|
||||||
|
|
||||||
Serial.println(freeMemory(), DEC);
|
Serial.println(freeMemory(), DEC);
|
||||||
|
@ -39,13 +38,15 @@ void setup() {
|
||||||
peripheral_unsilence(PIN_SPI_CS_SD);
|
peripheral_unsilence(PIN_SPI_CS_SD);
|
||||||
|
|
||||||
store_init();
|
store_init();
|
||||||
Serial.println(freeMemory(), DEC); // 6
|
Serial.println(freeMemory(), DEC);
|
||||||
store_reading(id, gps_data);
|
store_reading(id, gps_data);
|
||||||
|
Serial.println(freeMemory(), DEC);
|
||||||
#ifdef SD_DEBUG_ENABLED
|
#ifdef SD_DEBUG_ENABLED
|
||||||
store_debug(gps_data.time, 19);
|
store_debug(gps_data.time, 19);
|
||||||
#endif
|
#endif
|
||||||
|
Serial.println(freeMemory(), DEC);
|
||||||
store_close();
|
store_close();
|
||||||
Serial.println(freeMemory(), DEC); // 7
|
Serial.println(freeMemory(), DEC);
|
||||||
|
|
||||||
// ------------------------------------------------------------------------
|
// ------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue