Skip to content

Commit 95c496d

Browse files
calebbourgjhodapp
andauthored
Update esp32-wroom-rp/src/spi.rs
Co-authored-by: Jim Hodapp <james.hodapp@gmail.com>
1 parent 2d9ceca commit 95c496d

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 i in 0..num_params_to_read {
229-
params[i] = self.get_byte().ok().unwrap()
228+
for param in params {
229+
params = 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)