From b3e920b3c8cd4c9eb4ff134b3019e1bc205193bc Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 3 Nov 2017 12:16:16 +0100 Subject: [PATCH] firmware/libboard/serwb: fix init --- artiq/firmware/libboard/serwb.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/firmware/libboard/serwb.rs b/artiq/firmware/libboard/serwb.rs index ce7fbf2cf..46b499f36 100644 --- a/artiq/firmware/libboard/serwb.rs +++ b/artiq/firmware/libboard/serwb.rs @@ -3,7 +3,7 @@ use csr; pub fn wait_init() { info!("waiting for AMC/RTM serwb bridge to be ready..."); unsafe { - while csr::serwb_phy::control_ready_read() != 0 {} + while csr::serwb_phy::control_ready_read() == 0 {} } info!("done.");