From 1516327c26b3dd4a0c7ef410911275302fd5c3a9 Mon Sep 17 00:00:00 2001 From: morgan Date: Tue, 29 Aug 2023 11:25:28 +0800 Subject: [PATCH] firmware: fix zc706 compilation error Co-authored-by: morgan Co-committed-by: morgan --- src/runtime/src/main.rs | 1 + src/satman/src/main.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/runtime/src/main.rs b/src/runtime/src/main.rs index 4f6433e..3fada3e 100644 --- a/src/runtime/src/main.rs +++ b/src/runtime/src/main.rs @@ -145,6 +145,7 @@ pub fn main_core0() { i2c::init(); let i2c_bus = unsafe { (i2c::I2C_BUS).as_mut().unwrap() }; + #[cfg(feature = "target_kasli_soc")] let (mut io_expander0, mut io_expander1); #[cfg(feature = "target_kasli_soc")] { diff --git a/src/satman/src/main.rs b/src/satman/src/main.rs index db82244..88b394a 100644 --- a/src/satman/src/main.rs +++ b/src/satman/src/main.rs @@ -612,6 +612,7 @@ pub extern "C" fn main_core0() -> i32 { let mut i2c = I2c::i2c0(); i2c.init().expect("I2C initialization failed"); + #[cfg(feature = "target_kasli_soc")] let (mut io_expander0, mut io_expander1); #[cfg(feature = "target_kasli_soc")] {