improved wifi handling and tickers, many thanks to @beegee3 #571

fixed YieldTotal correction calculation #589
fixed serial output of power limit acknowledge #569
This commit is contained in:
lumapu 2023-01-16 22:04:59 +01:00
parent 9f8371fdef
commit c157134da9
10 changed files with 133 additions and 82 deletions

View file

@ -238,7 +238,7 @@ class Inverter {
rec->record[pos] = (REC_TYP)((int16_t)val) / (REC_TYP)(div);
} else if ((FLD_YT == rec->assign[pos].fieldId)
&& (config->yieldCor != 0)) {
rec->record[pos] = (REC_TYP)(val) / (REC_TYP)(div) - (REC_TYP)config->yieldCor;
rec->record[pos] = ((REC_TYP)(val) / (REC_TYP)(div)) - ((REC_TYP)config->yieldCor);
} else {
if ((REC_TYP)(div) > 1)
rec->record[pos] = (REC_TYP)(val) / (REC_TYP)(div);