some more MI specific things

- might decode data and enqueue correct next command
- small fixes wrt. to serial readibility
This commit is contained in:
rejoe2 2023-10-18 18:56:59 +02:00 committed by GitHub
parent 0e7874935d
commit 5b3d0593fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 124 additions and 3 deletions

View file

@ -202,7 +202,8 @@ class Inverter {
mDevControlRequest = false;
}
else if(0 == getFwVersion())
cb(InverterDevInform_All, false); // get firmware version
cb(MI_REQ_CH1, false); // get firmware version
//cb(InverterDevInform_All, false); // get firmware version
else {
record_t<> *rec = getRecordStruct(InverterDevInform_Simple);
if (getChannelFieldValue(CH0, FLD_PART_NUM, rec) == 0)