2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-24 10:54:02 +08:00

runtime: fix incorrect 'RTIO clock failed' report

This commit is contained in:
Sebastien Bourdeauducq 2019-06-24 23:33:13 +08:00
parent 8bf9640185
commit 5a9bb0ecba

View File

@ -152,9 +152,9 @@ pub fn init() {
#[cfg(has_rtio_crg)]
{
#[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))]
let result = !crg::init();
let result = crg::init();
if !result {
error!("RTIO clock failed");
}