forked from M-Labs/artiq
style
This commit is contained in:
parent
87ce24e867
commit
66a66b03b4
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue