mirror of https://github.com/m-labs/artiq.git
runtime: fix incorrect 'RTIO clock failed' report
This commit is contained in:
parent
8bf9640185
commit
5a9bb0ecba
|
@ -152,9 +152,9 @@ 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());
|
let result = crg::init(get_rtio_clock_cfg());
|
||||||
#[cfg(not(has_rtio_clock_switch))]
|
#[cfg(not(has_rtio_clock_switch))]
|
||||||
let result = !crg::init();
|
let result = crg::init();
|
||||||
if !result {
|
if !result {
|
||||||
error!("RTIO clock failed");
|
error!("RTIO clock failed");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue