libboard_zynq::flash: fix bug in read_reg_until()

This commit is contained in:
Astro 2020-01-17 00:41:41 +01:00
parent 2b20d6b6c8
commit acb5207d0e

View File

@ -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;
}
}