From 5a9bb0ecbac386a7fd730be751cd211cdb815257 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 24 Jun 2019 23:33:13 +0800 Subject: [PATCH] runtime: fix incorrect 'RTIO clock failed' report --- artiq/firmware/runtime/rtio_clocking.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/firmware/runtime/rtio_clocking.rs b/artiq/firmware/runtime/rtio_clocking.rs index 6cc590fa1..3277a2794 100644 --- a/artiq/firmware/runtime/rtio_clocking.rs +++ b/artiq/firmware/runtime/rtio_clocking.rs @@ -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"); }