libboard_zynq::flash: fix bug in read_reg_until()

This commit is contained in:
Astro 2020-01-17 00:41:41 +01:00
parent 6cb29022df
commit ea574a18d8
1 changed files with 1 additions and 1 deletions

View File

@ -386,7 +386,7 @@ impl Flash<Manual> {
.bytes_transfer().skip(1) {
result = f(R::new(b));
if result.is_none() {
if result.is_some() {
break;
}
}