From acb5207d0ef0b0971c0028cbb6a8f8f9ba6b3e5d 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 15eb566..6c1ccbf 100644 --- a/libboard_zynq/src/flash/mod.rs +++ b/libboard_zynq/src/flash/mod.rs @@ -372,7 +372,7 @@ impl Flash { .bytes_transfer().skip(1) { result = f(R::new(b)); - if result.is_none() { + if result.is_some() { break; } }