Continue refactor

This commit is contained in:
Carl Philipp Klemm 2026-03-30 18:25:25 +02:00
parent 18cf2b01bd
commit 219fbfb4c7
14 changed files with 104 additions and 125 deletions

View file

@ -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)