mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-22 21:36:11 +02:00
MI - assure HW part no is there
This commit is contained in:
parent
5fc80f660a
commit
f9857b52ab
2 changed files with 10 additions and 3 deletions
|
@ -210,8 +210,13 @@ class Inverter {
|
|||
enqueCommand<InfoCommand>(InverterDevInform_Simple); // hardware version
|
||||
enqueCommand<InfoCommand>(RealTimeRunData_Debug); // live data
|
||||
} else if (ivGen == IV_MI){
|
||||
if (getFwVersion() == 0 || getHwVersion() == 0)
|
||||
enqueCommand<InfoCommand>(InverterDevInform_All); // firmware version; might not work, esp. for 1/2 ch hardware
|
||||
if (getFwVersion() == 0) {
|
||||
enqueCommand<InfoCommand>(InverterDevInform_All); // hard- and firmware version
|
||||
} else {
|
||||
record_t<> *rec = getRecordStruct(InverterDevInform_Simple);
|
||||
if (getChannelFieldValue(CH0, FLD_PART_NUM, rec) == 0)
|
||||
enqueCommand<InfoCommand>(InverterDevInform_All); // hard- and firmware version for missing HW part nr, delivered by frame 1
|
||||
}
|
||||
if (type == INV_TYPE_4CH) {
|
||||
enqueCommand<InfoCommand>(0x36);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue