Skip to content

Commit 896d764

Browse files
committed
fix compile error
1 parent ad1466f commit 896d764

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/protocol.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ pub struct NinaByteParam {
3131
data: Vec<u8, 1>,
3232
}
3333

34-
3534
// Used for 2-byte params
35+
pub struct NinaWordParam {
3636
length: u8,
3737
data: Vec<u8, 2>,
3838
}

src/spi.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,6 @@ where
259259
}
260260

261261
fn send_param_length<P: NinaParam>(&mut self, param: &mut P) -> Result<(), self::Error> {
262-
263262
for byte in param.length_as_bytes().into_iter() {
264263
self.bus.transfer(&mut [byte]).ok().unwrap();
265264
}

0 commit comments

Comments
 (0)