Browse Source

MI - small changes

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

4
src/hm/hmInverter.h

@ -176,7 +176,7 @@ class Inverter {
enqueCommand<InfoCommand>(RealTimeRunData_Debug); // live data enqueCommand<InfoCommand>(RealTimeRunData_Debug); // live data
} else if (ivGen == IV_MI){ } else if (ivGen == IV_MI){
if (type == INV_TYPE_4CH) { if (type == INV_TYPE_4CH) {
enqueCommand<MiInfoCommand>(0x36); enqueCommand<InfoCommand>(0x36);
/*for(uint8_t i = 0x36; i <= 0x39; i++) { /*for(uint8_t i = 0x36; i <= 0x39; i++) {
enqueCommand<MiInfoCommand>(i); // live data enqueCommand<MiInfoCommand>(i); // live data
}*/ }*/
@ -184,7 +184,7 @@ class Inverter {
enqueCommand<InfoCommand>(0x09); enqueCommand<InfoCommand>(0x09);
//enqueCommand<MiInfoCommand>(0x11); //enqueCommand<MiInfoCommand>(0x11);
} else if (type == INV_TYPE_1CH) { } else if (type == INV_TYPE_1CH) {
enqueCommand<MiInfoCommand>(0x09); enqueCommand<InfoCommand>(0x09);
} }
//if (getFwVersion() == 0) //if (getFwVersion() == 0)
// enqueCommand<MiInfoCommand>(InverterDevInform_All); // firmware version, might not work, esp. for 1/2 ch hardware // enqueCommand<MiInfoCommand>(InverterDevInform_All); // firmware version, might not work, esp. for 1/2 ch hardware

1
src/hm/miPayload.h

@ -481,7 +481,6 @@ class MiPayload {
ac_pow = calcPowerDcCh0(iv, 0)*9.5; ac_pow = calcPowerDcCh0(iv, 0)*9.5;
//} //}
iv->setValue(iv->getPosByChFld(0, FLD_PAC, rec), rec, (float) (ac_pow/10)); iv->setValue(iv->getPosByChFld(0, FLD_PAC, rec), rec, (float) (ac_pow/10));
//iv->setValue(iv->getPosByChFld(0, FLD_PAC, rec), rec, (float) (mPayload[iv->id].sts[0] == 3 ? calcPowerDcCh0(iv, 0)*0.95 : 0));
if ( mPayload[iv->id].sts[0] ) { if ( mPayload[iv->id].sts[0] ) {
uint8_t cmd = mPayload[iv->id].dataAB[0] ? 0x11 : 0x09; uint8_t cmd = mPayload[iv->id].dataAB[0] ? 0x11 : 0x09;

Loading…
Cancel
Save