diff --git a/src/runtime/src/main.rs b/src/runtime/src/main.rs index bef85af..2c5910e 100644 --- a/src/runtime/src/main.rs +++ b/src/runtime/src/main.rs @@ -144,7 +144,7 @@ pub fn main_core0() { info!("gateware ident: {}", identifier_read(&mut [0; 64])); i2c::init(); - #[allow(unused)] + #[cfg(feature = "target_kasli_soc")] let i2c_bus = unsafe { (i2c::I2C_BUS).as_mut().unwrap() }; #[cfg(feature = "target_kasli_soc")]