From ea574a18d8c324b0bd58b0983a60ce102a77d2d8 Mon Sep 17 00:00:00 2001 From: Astro Date: Fri, 17 Jan 2020 00:41:41 +0100 Subject: [PATCH] libboard_zynq::flash: fix bug in read_reg_until() --- libboard_zynq/src/flash/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libboard_zynq/src/flash/mod.rs b/libboard_zynq/src/flash/mod.rs index 000100b..68dccc4 100644 --- a/libboard_zynq/src/flash/mod.rs +++ b/libboard_zynq/src/flash/mod.rs @@ -386,7 +386,7 @@ impl Flash { .bytes_transfer().skip(1) { result = f(R::new(b)); - if result.is_none() { + if result.is_some() { break; } }