From 88b8873550f011116c6ab7416b9870b2760f8e1a Mon Sep 17 00:00:00 2001 From: Jonathan 'theJPster' Pallant Date: Sat, 23 Nov 2024 20:37:18 +0000 Subject: [PATCH] Update rp235x-hal/src/rom_data.rs --- rp235x-hal/src/rom_data.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/rp235x-hal/src/rom_data.rs b/rp235x-hal/src/rom_data.rs index dd1217b5..84ee2682 100644 --- a/rp235x-hal/src/rom_data.rs +++ b/rp235x-hal/src/rom_data.rs @@ -622,10 +622,9 @@ pub mod sys_info_api { if result < 0 { return Err(BootRomApiErrorCode::from(result)); - } - // The operation returned successfully but the flag wasn't supported - // for one reason or another - else if buffer[0] == 0 { + } else if buffer[0] == 0 { + // The operation returned successfully but the flag wasn't supported + // for one reason or another return Ok(None); }