mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-23 13:56:10 +02:00
more fixes to serial output
This commit is contained in:
parent
a95dce51c6
commit
a5f93f186c
2 changed files with 3 additions and 3 deletions
|
@ -304,7 +304,7 @@ class Inverter {
|
||||||
if (getPosByChFld(0, FLD_ACT_ACTIVE_PWR_LIMIT, rec) == pos){
|
if (getPosByChFld(0, FLD_ACT_ACTIVE_PWR_LIMIT, rec) == pos){
|
||||||
actPowerLimit = rec->record[pos];
|
actPowerLimit = rec->record[pos];
|
||||||
DPRINT(DBG_DEBUG, F("Inverter actual power limit: "));
|
DPRINT(DBG_DEBUG, F("Inverter actual power limit: "));
|
||||||
DBGPRINTLN(String(actPowerLimit, 1));
|
DPRINTLN(DBG_DEBUG, String(actPowerLimit, 1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (rec->assign == AlarmDataAssignment) {
|
else if (rec->assign == AlarmDataAssignment) {
|
||||||
|
|
|
@ -168,7 +168,7 @@ class HmPayload {
|
||||||
DPRINTLN(DBG_DEBUG, F("fragment number zero received and ignored"));
|
DPRINTLN(DBG_DEBUG, F("fragment number zero received and ignored"));
|
||||||
} else {
|
} else {
|
||||||
DPRINT(DBG_DEBUG, F("PID: 0x"));
|
DPRINT(DBG_DEBUG, F("PID: 0x"));
|
||||||
DBGHEXLN(*pid);
|
DPRINTLN(DBG_DEBUG, String(*pid, HEX));
|
||||||
if ((*pid & 0x7F) < MAX_PAYLOAD_ENTRIES) {
|
if ((*pid & 0x7F) < MAX_PAYLOAD_ENTRIES) {
|
||||||
memcpy(mPayload[iv->id].data[(*pid & 0x7F) - 1], &p->packet[10], p->len - 11);
|
memcpy(mPayload[iv->id].data[(*pid & 0x7F) - 1], &p->packet[10], p->len - 11);
|
||||||
mPayload[iv->id].len[(*pid & 0x7F) - 1] = p->len - 11;
|
mPayload[iv->id].len[(*pid & 0x7F) - 1] = p->len - 11;
|
||||||
|
@ -285,7 +285,7 @@ class HmPayload {
|
||||||
DPRINT(DBG_INFO, F("procPyld: txid: 0x"));
|
DPRINT(DBG_INFO, F("procPyld: txid: 0x"));
|
||||||
DBGHEXLN(mPayload[iv->id].txId);
|
DBGHEXLN(mPayload[iv->id].txId);
|
||||||
DPRINT(DBG_DEBUG, F("procPyld: max: "));
|
DPRINT(DBG_DEBUG, F("procPyld: max: "));
|
||||||
DBGPRINTLN(String(mPayload[iv->id].maxPackId));
|
DPRINTLN(DBG_DEBUG, String(mPayload[iv->id].maxPackId));
|
||||||
record_t<> *rec = iv->getRecordStruct(mPayload[iv->id].txCmd); // choose the parser
|
record_t<> *rec = iv->getRecordStruct(mPayload[iv->id].txCmd); // choose the parser
|
||||||
mPayload[iv->id].complete = true;
|
mPayload[iv->id].complete = true;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue