This commit is contained in:
Sebastien Bourdeauducq 2019-06-14 15:29:16 +08:00
parent 87ce24e867
commit 66a66b03b4
1 changed files with 4 additions and 9 deletions

View File

@ -147,16 +147,11 @@ pub fn init() {
#[cfg(has_rtio_crg)]
{
#[cfg(has_rtio_clock_switch)]
{
if !crg::init(get_rtio_clock_cfg()) {
error!("RTIO clock failed");
}
}
let result = !crg::init(get_rtio_clock_cfg());
#[cfg(not(has_rtio_clock_switch))]
{
if !crg::init() {
error!("RTIO clock failed");
}
let result = !crg::init();
if !result {
error!("RTIO clock failed");
}
}
}