Skip to content

Commit 963ee90

Browse files
committed
fix for loop
1 parent cda515a commit 963ee90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

esp32-wroom-rp/src/spi.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ where
225225
}
226226

227227
let mut params: [u8; ARRAY_LENGTH_PLACEHOLDER] = [0; 8];
228-
for param in params {
229-
params = self.get_byte().ok().unwrap()
228+
for (index, _param) in params.into_iter().enumerate() {
229+
params[index] = self.get_byte().ok().unwrap()
230230
}
231231
let control_byte: u8 = ControlByte::End as u8;
232232
self.read_and_check_byte(&control_byte)?;

0 commit comments

Comments
 (0)