Skip to content

Commit

Permalink
Fix a bug with repeating keys
Browse files Browse the repository at this point in the history
  • Loading branch information
bschwind committed Jul 12, 2024
1 parent 8fa827a commit a786684
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions firmware/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,11 @@ fn main() -> ! {
UsbError::Unsupported => error!("UsbError::Unsupported"),
UsbError::InvalidState => error!("UsbError::InvalidState"),
}
} else {
// Only assign to last_report if it was successfully reported.
last_report = report;
}
});

last_report = report;
}
}
}
Expand Down

0 comments on commit a786684

Please sign in to comment.