From 64c8eb71dbe1d908790416a38d4f1b3aef404e19 Mon Sep 17 00:00:00 2001 From: bunnie Date: Sun, 28 Jan 2024 16:40:04 +0800 Subject: [PATCH] fix another location where scalar5 arg parsing is incorrect --- services/cram-hal-service/src/iox_lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/cram-hal-service/src/iox_lib.rs b/services/cram-hal-service/src/iox_lib.rs index 39c414210..7a2351b3a 100644 --- a/services/cram-hal-service/src/iox_lib.rs +++ b/services/cram-hal-service/src/iox_lib.rs @@ -78,7 +78,7 @@ impl IoxHal { 0, ), ) { - Ok(xous::Result::Scalar5(value, _, _, _, _)) => { + Ok(xous::Result::Scalar5(_, value, _, _, _)) => { if value & (1 << pin as usize) != 0 { IoxValue::High } else { @@ -100,7 +100,7 @@ impl IoxHal { 0, ), ) { - Ok(xous::Result::Scalar5(value, _, _, _, _)) => value as u32, + Ok(xous::Result::Scalar5(_, value, _, _, _)) => value as u32, _ => panic!("Internal Error: Couldn't get GPIO pin value"), } }