(device: &HidDevice)
| 87 | } |
| 88 | |
| 89 | fn flashing_mode(device: &HidDevice) { |
| 90 | // Probably enter flashing mode? |
| 91 | info!("Enter flashing mode"); |
| 92 | let _ = send_command(device, CmdId::CmdFlash, CmdParam::Enable as u8) |
| 93 | .expect("Failed to enter flashing mode"); |
| 94 | } |
| 95 | |
| 96 | fn magic_unlock(device: &HidDevice) { |
| 97 | device.set_blocking_mode(true).unwrap(); |
no test coverage detected