gate i2c_bus behind target_kasli_soc cfg

pull/261/head
morgan 2023-09-11 15:13:04 +08:00
parent d6e0e461c6
commit 34f936ac2e
1 changed files with 1 additions and 1 deletions

View File

@ -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")]