fix(interrupt): parse correct amount of data
This commit is contained in:
@@ -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]]),
|
||||
|
||||
Reference in New Issue
Block a user