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