From 363f7327f176a2db3723d8729aecd25998bf082b Mon Sep 17 00:00:00 2001 From: occheung Date: Fri, 13 Oct 2023 16:43:06 -0700 Subject: [PATCH] io_expander: initialize before service --- artiq/firmware/satman/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/artiq/firmware/satman/main.rs b/artiq/firmware/satman/main.rs index a44919933..4ca8c308c 100644 --- a/artiq/firmware/satman/main.rs +++ b/artiq/firmware/satman/main.rs @@ -632,7 +632,8 @@ pub extern fn main() -> i32 { #[cfg(soc_platform = "efc")] { io_expander = board_misoc::io_expander::IoExpander::new().unwrap(); - + io_expander.init().expect("I2C I/O expander initialization failed"); + // Enable LEDs io_expander.set_oe(0, 1 << 5 | 1 << 6 | 1 << 7).unwrap();