diff --git a/include/storage.h b/include/storage.h index f4ad5d8..be4c80f 100644 --- a/include/storage.h +++ b/include/storage.h @@ -12,7 +12,7 @@ constexpr size_t maximumStorageDurationInHours = (storageSize / TEMPERATURE_SENS // Max size: 7664 constexpr size_t maxRtcStorageSize = 7664; -constexpr size_t rtcStorageSize = 7632; +constexpr size_t rtcStorageSize = 7600; constexpr size_t maxEepromSize = 13350; constexpr size_t eepromSize = 13350; diff --git a/src/main.cpp b/src/main.cpp index f09d418..4d341ce 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -97,7 +97,7 @@ void enableLED() { } void setup() { - //Serial.begin(serialBaudRate); + Serial.begin(serialBaudRate); // LED useless inside case //enableLED(); diff --git a/src/temperature.cpp b/src/temperature.cpp index cb89413..1318879 100644 --- a/src/temperature.cpp +++ b/src/temperature.cpp @@ -31,8 +31,8 @@ struct Sensor { bool foundDuringCurrentUpdate; }; -Sensor sensors[TEMPERATURE_SENSOR_MAX_COUNT]; -uint8_t availableSensorCount = 0; +RTC_DATA_ATTR Sensor sensors[TEMPERATURE_SENSOR_MAX_COUNT]; +RTC_DATA_ATTR uint8_t availableSensorCount = 0; bool hasSensorAtIndex(uint8_t sensorIndex) { return sensors[sensorIndex].isSet;