Fix sensor init

This commit is contained in:
Christoph Hagen 2023-06-01 22:54:13 +02:00
parent a7a8367687
commit 3727fdb694
3 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ constexpr size_t maximumStorageDurationInHours = (storageSize / TEMPERATURE_SENS
// Max size: 7664 // Max size: 7664
constexpr size_t maxRtcStorageSize = 7664; constexpr size_t maxRtcStorageSize = 7664;
constexpr size_t rtcStorageSize = 7632; constexpr size_t rtcStorageSize = 7600;
constexpr size_t maxEepromSize = 13350; constexpr size_t maxEepromSize = 13350;
constexpr size_t eepromSize = 13350; constexpr size_t eepromSize = 13350;

View File

@ -97,7 +97,7 @@ void enableLED() {
} }
void setup() { void setup() {
//Serial.begin(serialBaudRate); Serial.begin(serialBaudRate);
// LED useless inside case // LED useless inside case
//enableLED(); //enableLED();

View File

@ -31,8 +31,8 @@ struct Sensor {
bool foundDuringCurrentUpdate; bool foundDuringCurrentUpdate;
}; };
Sensor sensors[TEMPERATURE_SENSOR_MAX_COUNT]; RTC_DATA_ATTR Sensor sensors[TEMPERATURE_SENSOR_MAX_COUNT];
uint8_t availableSensorCount = 0; RTC_DATA_ATTR uint8_t availableSensorCount = 0;
bool hasSensorAtIndex(uint8_t sensorIndex) { bool hasSensorAtIndex(uint8_t sensorIndex) {
return sensors[sensorIndex].isSet; return sensors[sensorIndex].isSet;