Skip to content

Commit

Permalink
grabber: cleanup GRABBER_STATE
Browse files Browse the repository at this point in the history
  • Loading branch information
sbourdeauducq committed Jul 24, 2018
1 parent fb96c11 commit 19c51c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion artiq/firmware/libboard_artiq/grabber.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 19c51c6

Please sign in to comment.