mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-22 09:23:16 +00:00
feature-out some battery testing code in hosted mode
This commit is contained in:
parent
231aff1f80
commit
399742a3d4
1 changed files with 20 additions and 13 deletions
|
|
@ -70,6 +70,8 @@ fn main() {
|
|||
log::set_max_level(log::LevelFilter::Debug);
|
||||
modals::tests::spawn_test();
|
||||
}
|
||||
#[cfg(not(feature = "hosted-baosec"))]
|
||||
{
|
||||
use cramium_api::I2cApi;
|
||||
let mut i2c = cram_hal_service::I2c::new();
|
||||
use cramium_hal::axp2101::*;
|
||||
|
|
@ -86,3 +88,8 @@ fn main() {
|
|||
}
|
||||
}
|
||||
}
|
||||
#[cfg(feature = "hosted-baosec")]
|
||||
loop {
|
||||
tt.sleep_ms(2_000).ok();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue