Fix sensor init
This commit is contained in:
parent
a7a8367687
commit
3727fdb694
@ -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;
|
||||||
|
@ -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();
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user