2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-28 20:53:35 +08:00
This commit is contained in:
Sebastien Bourdeauducq 2019-06-14 15:29:16 +08:00
parent 87ce24e867
commit 66a66b03b4

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");
}
}
}