mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-22 21:36:11 +02:00
Merge branch 'development03' into hms
This commit is contained in:
commit
8ad9a919f4
9 changed files with 200 additions and 195 deletions
|
@ -144,10 +144,9 @@ class Inverter {
|
|||
template <typename T>
|
||||
void enqueCommand(uint8_t cmd) {
|
||||
_commandQueue.push(std::make_shared<T>(cmd));
|
||||
DPRINT(DBG_INFO, F("(#"));
|
||||
DBGPRINT(String(id));
|
||||
DBGPRINT(F(") enqueCommand: 0x"));
|
||||
DHEX(cmd);
|
||||
DPRINT_IVID(DBG_INFO, id);
|
||||
DBGPRINTLN(F("enqueCommand: 0x"));
|
||||
DBGHEXLN(cmd);
|
||||
}
|
||||
|
||||
void setQueuedCmdFinished() {
|
||||
|
@ -290,7 +289,8 @@ class Inverter {
|
|||
alarmMesIndex = rec->record[pos];
|
||||
//enqueCommand<InfoCommand>(AlarmUpdate); // What is the function of AlarmUpdate?
|
||||
|
||||
DPRINTLN(DBG_INFO, "alarm ID incremented to " + String(alarmMesIndex));
|
||||
DPRINT(DBG_INFO, "alarm ID incremented to ");
|
||||
DBGPRINTLN(String(alarmMesIndex));
|
||||
enqueCommand<InfoCommand>(AlarmData);
|
||||
}
|
||||
}
|
||||
|
@ -304,7 +304,8 @@ class Inverter {
|
|||
DPRINTLN(DBG_DEBUG, "add config");
|
||||
if (getPosByChFld(0, FLD_ACT_ACTIVE_PWR_LIMIT, rec) == pos){
|
||||
actPowerLimit = rec->record[pos];
|
||||
DPRINT(DBG_DEBUG, F("Inverter actual power limit: ") + String(actPowerLimit, 1));
|
||||
DPRINT(DBG_DEBUG, F("Inverter actual power limit: "));
|
||||
DBGPRINTLN(String(actPowerLimit, 1));
|
||||
}
|
||||
}
|
||||
else if (rec->assign == AlarmDataAssignment) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue