| 120 | } |
| 121 | #[derive(Debug)] |
| 122 | pub struct PressCounter { |
| 123 | pub down_counter: u8, |
| 124 | pub up_counter: u8, |
| 125 | } |
| 126 | impl OnOff for Arc<RwLock<PressCounter>> { |
| 127 | fn on_activate(&mut self, output: &mut dyn USBKeyOut) { |
| 128 | self.write().down_counter += 1; |
nothing calls this directly
no outgoing calls
no test coverage detected