forked from M-Labs/zynq-rs
libboard_zynq::flash: fix bug in read_reg_until()
This commit is contained in:
parent
6cb29022df
commit
ea574a18d8
|
@ -386,7 +386,7 @@ impl Flash<Manual> {
|
||||||
.bytes_transfer().skip(1) {
|
.bytes_transfer().skip(1) {
|
||||||
result = f(R::new(b));
|
result = f(R::new(b));
|
||||||
|
|
||||||
if result.is_none() {
|
if result.is_some() {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue