From 19c51c644e8c983d35452abf47bcb34f9d1afabc Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 24 Jul 2018 19:08:51 +0800 Subject: [PATCH] grabber: cleanup GRABBER_STATE --- artiq/firmware/libboard_artiq/grabber.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/firmware/libboard_artiq/grabber.rs b/artiq/firmware/libboard_artiq/grabber.rs index 7c80ac81b..2da0126e4 100644 --- a/artiq/firmware/libboard_artiq/grabber.rs +++ b/artiq/firmware/libboard_artiq/grabber.rs @@ -7,7 +7,7 @@ enum State { Up } -static mut GRABBER_STATE: &'static mut [State] = &mut [State::Down; csr::GRABBER_LEN]; +static mut GRABBER_STATE: [State; csr::GRABBER_LEN] = [State::Down; csr::GRABBER_LEN]; fn get_pll_reset(g: usize) -> bool { unsafe { (csr::GRABBER[g].pll_reset_read)() != 0 }