We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9a5265f + 82bdf81 commit ba216e5Copy full SHA for ba216e5
1 file changed
nrf-hal-common/src/spim.rs
@@ -340,7 +340,7 @@ where
340
// Don't return early, as we must reset the CS pin
341
let res = txi
342
.zip(rxi)
343
- .take_while(|(t, r)| t.is_some() && r.is_some())
+ .take_while(|(t, r)| t.is_some() || r.is_some())
344
// We also turn the slices into either a DmaSlice (if there was data), or a null
345
// DmaSlice (if there is no data)
346
.map(|(t, r)| {
0 commit comments