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
parent
6bae630463
commit
ff1a78c4eb
|
|
@ -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);
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue