forked from M-Labs/artiq
1
0
Fork 0

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
1 changed files with 2 additions and 2 deletions

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