(device: &HidDevice)
| 119 | } |
| 120 | |
| 121 | fn get_fw_info(device: &HidDevice) -> HidFirmwareInfo { |
| 122 | // Get 0x40 bytes from 0xE0 |
| 123 | let mut buf = [0u8; 0x40]; |
| 124 | buf[0] = ReportIdCmd::E0Read as u8; |
| 125 | info!("Get Report E0"); |
| 126 | device |
| 127 | .get_feature_report(&mut buf) |
| 128 | .expect("Failed to get device FW info"); |
| 129 | |
| 130 | flashing_mode(device); |
| 131 | |
| 132 | decode_fw_info(&buf) |
| 133 | } |
| 134 | |
| 135 | pub fn check_ccg_fw_version(device: &HidDevice, verbose: bool) { |
| 136 | magic_unlock(device); |
no test coverage detected