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.
checksum-failure-logging
Paul Hollinsky 2019-09-04 13:31:17 -04:00
parent 6bae630463
commit ff1a78c4eb
1 changed files with 6 additions and 1 deletions

View File

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