grabber: cleanup GRABBER_STATE

pull/1122/head
Sebastien Bourdeauducq 2018-07-24 19:08:51 +08:00
parent fb96c1140e
commit 19c51c644e
1 changed files with 1 additions and 1 deletions

View File

@ -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 }