mirror of
https://github.com/lumapu/ahoy.git
synced 2025-07-28 05:37:21 +02:00
0.8.26
* read grid profile as HEX (`live` -> click inverter name -> `show grid profile`)
This commit is contained in:
parent
681c58e6a2
commit
16d0eb2048
10 changed files with 73 additions and 7 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue