fix(interrupt): parse correct amount of data

This commit is contained in:
2025-07-01 12:20:23 +09:00
parent a5cffa4852
commit 0a55b5a68b
2 changed files with 5 additions and 4 deletions

View File

@@ -22,6 +22,7 @@ pub struct Mess1 {
impl Mess1 {
pub fn new(data: &Vec<u8>) -> Self {
log::debug!("Mess1 from data {data:?}");
Self {
i1: Word::from_le_bytes([data[4], data[5]]),
i2: Word::from_le_bytes([data[6], data[7]]),