Browse Source

Add files via upload

pull/1080/head
oberfritze 2 years ago
committed by GitHub
parent
commit
737526a0b1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/hm/hmInverter.h
  2. 2
      src/hm/miPayload.h

4
src/hm/hmInverter.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;

2
src/hm/miPayload.h

@ -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++;

Loading…
Cancel
Save