feature-out some battery testing code in hosted mode

This commit is contained in:
bunnie 2025-05-07 23:10:04 +08:00
parent 231aff1f80
commit 399742a3d4

View file

@ -70,6 +70,8 @@ fn main() {
log::set_max_level(log::LevelFilter::Debug); log::set_max_level(log::LevelFilter::Debug);
modals::tests::spawn_test(); modals::tests::spawn_test();
} }
#[cfg(not(feature = "hosted-baosec"))]
{
use cramium_api::I2cApi; use cramium_api::I2cApi;
let mut i2c = cram_hal_service::I2c::new(); let mut i2c = cram_hal_service::I2c::new();
use cramium_hal::axp2101::*; use cramium_hal::axp2101::*;
@ -86,3 +88,8 @@ fn main() {
} }
} }
} }
#[cfg(feature = "hosted-baosec")]
loop {
tt.sleep_ms(2_000).ok();
}
}