mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-22 05:16:11 +02:00
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:
parent
9f8371fdef
commit
c157134da9
10 changed files with 133 additions and 82 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue