mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
Encoder allowed to fail, preparation for upcoming CAN transmit
This commit is contained in:
+4
-1
@@ -210,6 +210,9 @@ void Device::updateLEDState() {
|
||||
* This old command type is not really used anywhere else.
|
||||
*/
|
||||
msg->data = {0x00, 0x06, uint8_t(ledState)};
|
||||
auto packet = com->encoder->encode(msg);
|
||||
std::vector<uint8_t> packet;
|
||||
if(!com->encoder->encode(packet, msg))
|
||||
return;
|
||||
|
||||
com->sendPacket(packet);
|
||||
}
|
||||
Reference in New Issue
Block a user