* fix max temperature tooltip if only one inverter is configured #1605
This commit is contained in:
lumapu 2024-05-09 01:01:23 +02:00
parent 4191aafeeb
commit fe80d3997d
4 changed files with 10 additions and 8 deletions

View file

@ -234,6 +234,7 @@ class Inverter {
initAssignment(&recordAlarm, AlarmData);
toRadioId();
curCmtFreq = this->config->frequency; // update to frequency read from settings
resetAlarms(true);
}
uint8_t getPosByChFld(uint8_t channel, uint8_t fieldId, record_t<> *rec) {
@ -594,8 +595,8 @@ class Inverter {
memset(mLastYD, 0, sizeof(float) * 6);
if(clear) {
tsMaxAcPower = 0;
tsMaxTemperature = 0;
tsMaxAcPower = *Timestamp;
tsMaxTemperature = *Timestamp;
}
}