oberfritze
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
3 deletions
-
src/hm/hmInverter.h
-
src/hm/miPayload.h
|
|
@ -130,8 +130,8 @@ class Inverter { |
|
|
|
//String lastAlarmMsg;
|
|
|
|
bool initialized; // needed to check if the inverter was correctly added (ESP32 specific - union types are never null)
|
|
|
|
bool isConnected; // shows if inverter was successfully identified (fw version and hardware info)
|
|
|
|
uint32_t pac_sum; // average calc for Highcharts: sum of ac power values for cur interval
|
|
|
|
uint16_t pac_cnt; // average calc for Highcharts: number of ac power values for cur interval
|
|
|
|
uint32_t pac_sum; // average calc for chart: sum of ac power values for cur interval
|
|
|
|
uint16_t pac_cnt; // average calc for chart: number of ac power values for cur interval
|
|
|
|
|
|
|
|
Inverter() { |
|
|
|
ivGen = IV_HM; |
|
|
|
|
|
@ -11,7 +11,6 @@ |
|
|
|
#include "../utils/crc.h" |
|
|
|
#include "../config/config.h" |
|
|
|
#include <Arduino.h> |
|
|
|
#include <Timezone.h> |
|
|
|
|
|
|
|
typedef struct { |
|
|
|
uint32_t ts; |
|
|
@ -750,6 +749,7 @@ const byteAssign_t InfoAssignment[] = { |
|
|
|
} |
|
|
|
ac_pow = (int) (ac_pow*9.5); |
|
|
|
iv->setValue(iv->getPosByChFld(0, FLD_PAC, rec), rec, (float) ac_pow/10); |
|
|
|
|
|
|
|
iv->doCalculations(); |
|
|
|
iv->setQueuedCmdFinished(); |
|
|
|
mStat->rxSuccess++; |
|
|
|