From 7e8348a73e4b3b16771c07ad48e1e8e5808316cf Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 18 Feb 2017 14:12:18 +0800 Subject: [PATCH] si5324: fix error handling --- artiq/firmware/libboard/si5324.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/firmware/libboard/si5324.rs b/artiq/firmware/libboard/si5324.rs index b5a983036..7e2f088d8 100644 --- a/artiq/firmware/libboard/si5324.rs +++ b/artiq/firmware/libboard/si5324.rs @@ -149,7 +149,7 @@ pub fn setup(settings: &FrequencySettings) -> Result<()> { write(0, read(0)? | 0x40)?; // FREE_RUN=1 write(2, (read(2)? & 0x0f) | (s.bwsel << 4))?; - write(21, read(21)? & 0xfe); // CKSEL_PIN=0 + write(21, read(21)? & 0xfe)?; // CKSEL_PIN=0 write(3, (read(3)? & 0x3f) | (0b01 << 6) | 0x10)?; // CKSEL_REG=b01 SQ_ICAL=1 write(4, (read(4)? & 0x3f) | (0b00 << 6))?; // AUTOSEL_REG=b00 write(6, (read(6)? & 0xc0) | 0b001111)?; // SFOUT2_REG=b001 SFOUT1_REG=b111