forked from M-Labs/artiq
1
0
Fork 0
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_crg)]
{ {
#[cfg(has_rtio_clock_switch)] #[cfg(has_rtio_clock_switch)]
{ let result = !crg::init(get_rtio_clock_cfg());
if !crg::init(get_rtio_clock_cfg()) {
error!("RTIO clock failed");
}
}
#[cfg(not(has_rtio_clock_switch))] #[cfg(not(has_rtio_clock_switch))]
{ let result = !crg::init();
if !crg::init() { if !result {
error!("RTIO clock failed"); error!("RTIO clock failed");
} }
} }
} }
}