mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-10 15:36:38 +02:00
MI - add grid profile request
Note: this doesn't deliver entire grid profile infos...
This commit is contained in:
parent
1b73e493a9
commit
2571e3c9f9
2 changed files with 32 additions and 15 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue