* read grid profile as HEX (`live` -> click inverter name -> `show grid profile`)
This commit is contained in:
lumapu 2023-12-17 15:04:09 +01:00
parent 681c58e6a2
commit 16d0eb2048
10 changed files with 73 additions and 7 deletions

View file

@ -254,7 +254,7 @@ class Communication : public CommQueue<> {
compilePayload(q);
if(NULL != mCbPayload)
if((NULL != mCbPayload) && (GridOnProFilePara != q->cmd))
(mCbPayload)(q->cmd, q->iv);
closeRequest(q, true);
@ -440,9 +440,15 @@ class Communication : public CommQueue<> {
} else
DBGPRINTLN(F(")"));
if(GridOnProFilePara == q->cmd) {
q->iv->addGridProfile(mPayload, len);
return;
}
record_t<> *rec = q->iv->getRecordStruct(q->cmd);
if(NULL == rec) {
DPRINTLN(DBG_ERROR, F("record is NULL!"));
closeRequest(q, false);
return;
}
if((rec->pyldLen != len) && (0 != rec->pyldLen)) {