From 8e371bc6a27373cd7dfbf4683d304293ddc7c060 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 2 Jan 2026 19:49:16 +0100 Subject: [PATCH] Removed surplus zero byte --- daemon/src/rotor.rs | 1 - firmware/src/main.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/daemon/src/rotor.rs b/daemon/src/rotor.rs index f5eb29b..30a106f 100644 --- a/daemon/src/rotor.rs +++ b/daemon/src/rotor.rs @@ -38,7 +38,6 @@ impl Encoder for ProtocolCodec { fn encode(&mut self, item: HostMessage, dst: &mut BytesMut) -> Result<(), Self::Error> { let msg_bytes = to_stdvec_cobs(&item).unwrap(); dst.put(msg_bytes.as_slice()); - dst.put_u8(0); Ok(()) } } diff --git a/firmware/src/main.rs b/firmware/src/main.rs index 71f9a63..ffb202c 100644 --- a/firmware/src/main.rs +++ b/firmware/src/main.rs @@ -514,7 +514,7 @@ mod app { bootloader::reboot_to_bootloader(); } }, - Err(err) => defmt::error!("Unable to parse host message"), + Err(err) => defmt::error!("Unable to parse host message: {}", err), }; *buffer = Vec::::from_slice(rest).unwrap();