Move led_writer to a main loop due to strange mpsc behaviour

This commit is contained in:
Luke
2020-06-11 20:09:18 +12:00
parent 93c6b28409
commit bf3588e516
10 changed files with 65 additions and 63 deletions

View File

@@ -29,6 +29,12 @@ pub struct VirtKeys {
device: UHIDDevice<std::fs::File>,
}
impl Default for VirtKeys {
fn default() -> Self {
Self::new()
}
}
impl VirtKeys {
pub fn new() -> Self {
VirtKeys {