1
Fork 0

handle more than one peice of sensor data at a time

This commit is contained in:
Andy Killorin 2025-02-09 14:19:21 -05:00
parent 1457a035ee
commit ef93458e94
Signed by: ank
GPG key ID: 23F9463ECB67FE8C

View file

@ -32,8 +32,11 @@ impl Decoder for FramedCodec {
Err(e)? Err(e)?
} }
}; };
let remainder = remainder.to_vec();
src.clear(); src.clear();
src.extend_from_slice(&remainder);
Ok(Some(message)) Ok(Some(message))
} }