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:
Paul Hollinsky
2019-09-04 13:31:17 -04:00
parent 6bae630463
commit ff1a78c4eb
+6 -1
View File
@@ -267,5 +267,10 @@ void Device::updateLEDState() {
auto msg = std::make_shared<Message>(); auto msg = std::make_shared<Message>();
msg->network = Network::NetID::Device; msg->network = Network::NetID::Device;
msg->data = {0x00, 0x06, uint8_t(ledState)}; msg->data = {0x00, 0x06, uint8_t(ledState)};
transmit(msg);
std::vector<uint8_t> packet;
if(!com->encoder->encode(packet, msg))
return;
com->sendPacket(packet);
} }