handle more than one peice of sensor data at a time
This commit is contained in:
parent
1457a035ee
commit
ef93458e94
1 changed files with 3 additions and 0 deletions
|
@ -33,7 +33,10 @@ impl Decoder for FramedCodec {
|
|||
}
|
||||
};
|
||||
|
||||
let remainder = remainder.to_vec();
|
||||
|
||||
src.clear();
|
||||
src.extend_from_slice(&remainder);
|
||||
|
||||
Ok(Some(message))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue