Fix warning
This commit is contained in:
@@ -137,11 +137,11 @@ pub fn connect_compatible_device() -> Result<Box<dyn Device>, DeviceError> {
|
||||
.expect("Why is there a device without packets ???");
|
||||
|
||||
test_device.prepare_write();
|
||||
if let Err(e) = test_device
|
||||
if let Err(_e) = test_device
|
||||
.get_device_state()
|
||||
.write_hid_report(&probe_packet)
|
||||
{
|
||||
debug_println!("Failed to open: {e:?}");
|
||||
debug_println!("Failed to open: {_e:?}");
|
||||
continue;
|
||||
} else {
|
||||
device = Some(test_device);
|
||||
|
||||
@@ -86,10 +86,9 @@ fn main() {
|
||||
};
|
||||
if mute_state.is_some()
|
||||
&& mute_state != device.get_device_state().device_properties.muted
|
||||
&& press_mute_key
|
||||
{
|
||||
if press_mute_key {
|
||||
enigo.key(Key::F20, Direction::Click).unwrap();
|
||||
}
|
||||
enigo.key(Key::F20, Direction::Click).unwrap();
|
||||
}
|
||||
|
||||
// with the default refresh_interval the state is only actively queried every 3min
|
||||
|
||||
Reference in New Issue
Block a user