We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad1466f commit 896d764Copy full SHA for 896d764
src/protocol.rs
@@ -31,8 +31,8 @@ pub struct NinaByteParam {
31
data: Vec<u8, 1>,
32
}
33
34
-
35
// Used for 2-byte params
+pub struct NinaWordParam {
36
length: u8,
37
data: Vec<u8, 2>,
38
src/spi.rs
@@ -259,7 +259,6 @@ where
259
260
261
fn send_param_length<P: NinaParam>(&mut self, param: &mut P) -> Result<(), self::Error> {
262
263
for byte in param.length_as_bytes().into_iter() {
264
self.bus.transfer(&mut [byte]).ok().unwrap();
265
0 commit comments