Merge branch 'development03' of https://github.com/rejoe2/ahoy into rejoe2-development03

This commit is contained in:
lumapu 2024-01-02 00:25:43 +01:00
commit 0b3f82def0
2 changed files with 32 additions and 15 deletions

View file

@ -215,6 +215,8 @@ class Inverter {
record_t<> *rec = getRecordStruct(InverterDevInform_Simple);
if (getChannelFieldValue(CH0, FLD_PART_NUM, rec) == 0)
cb(0x0f, false); // hard- and firmware version for missing HW part nr, delivered by frame 1
else if((getChannelFieldValue(CH0, FLD_GRID_PROFILE_CODE, rec) == 0) && generalConfig->readGrid) // read grid profile
cb(0x10, false); // legacy GPF command
else
cb(((type == INV_TYPE_4CH) ? MI_REQ_4CH : MI_REQ_CH1), false);
}