Clean public HID interface (#442)

* clear public HID interface and tests

* fixes nits
This commit is contained in:
kaczmarczyck
2022-03-14 12:08:44 +01:00
committed by GitHub
parent 2050f9f272
commit 163057daf0
5 changed files with 283 additions and 218 deletions

View File

@@ -45,7 +45,7 @@ impl Iterator for HidPacketIterator {
}
}
pub struct MessageSplitter {
struct MessageSplitter {
message: Message,
packet: HidPacket,
seq: Option<u8>,
@@ -292,6 +292,4 @@ mod test {
};
assert!(HidPacketIterator::new(message).is_none());
}
// TODO(kaczmarczyck) implement and test limits (maximum bytes and packets)
}