Continue refactor
This commit is contained in:
parent
18cf2b01bd
commit
219fbfb4c7
14 changed files with 104 additions and 125 deletions
|
|
@ -142,7 +142,7 @@ void Microcontroller::processList(const QString& buffer)
|
|||
else if(buffer.contains("EOL"))
|
||||
{
|
||||
listMode = false;
|
||||
gotItems(relayList);
|
||||
gotItems(relayList, ITEM_UPDATE_BACKEND);
|
||||
relayList.clear();
|
||||
}
|
||||
else listMode = false;
|
||||
|
|
@ -150,7 +150,10 @@ void Microcontroller::processList(const QString& buffer)
|
|||
|
||||
void Microcontroller::processRelayState(const QString& buffer)
|
||||
{
|
||||
updateItems({static_cast<ItemData>(*processRelayLine(buffer))});
|
||||
ItemUpdateRequest update;
|
||||
update.type = ITEM_UPDATE_BACKEND;
|
||||
update.payload = static_cast<ItemData>(*processRelayLine(buffer));
|
||||
updateItems({update});
|
||||
}
|
||||
|
||||
void Microcontroller::processSensorState(const QString& buffer)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue