mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
Hotfix for broken device LED updating
This is fixed more permanently on the development branch. That change will be preferred over this one, when the time comes to merge.
This commit is contained in:
+6
-1
@@ -267,5 +267,10 @@ void Device::updateLEDState() {
|
||||
auto msg = std::make_shared<Message>();
|
||||
msg->network = Network::NetID::Device;
|
||||
msg->data = {0x00, 0x06, uint8_t(ledState)};
|
||||
transmit(msg);
|
||||
|
||||
std::vector<uint8_t> packet;
|
||||
if(!com->encoder->encode(packet, msg))
|
||||
return;
|
||||
|
||||
com->sendPacket(packet);
|
||||
}
|
||||
Reference in New Issue
Block a user