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