diff --git a/src-interception/src/bindings.rs b/src-interception/src/bindings.rs index 4b86e87..2a7b532 100644 --- a/src-interception/src/bindings.rs +++ b/src-interception/src/bindings.rs @@ -1,4 +1,4 @@ -#![ allow( dead_code, unused_imports, non_upper_case_globals ) ] +#![ allow( dead_code, unused_imports, non_upper_case_globals, non_snake_case, deref_nullptr ) ] /* automatically generated by rust-bindgen 0.54.1 */ diff --git a/src-slider_io/src/bin/test_directinput.rs b/src-slider_io/src/bin/test_directinput.rs index 9f19c49..39cbbca 100644 --- a/src-slider_io/src/bin/test_directinput.rs +++ b/src-slider_io/src/bin/test_directinput.rs @@ -34,6 +34,7 @@ async fn main() { .unwrap(); println!("{:?}", config); + #[allow(unused_variables)] let ctx = Context::new(config); println!("Press enter to quit"); diff --git a/src-slider_io/src/device/hid.rs b/src-slider_io/src/device/hid.rs index 254fb34..29b91c6 100644 --- a/src-slider_io/src/device/hid.rs +++ b/src-slider_io/src/device/hid.rs @@ -227,13 +227,16 @@ impl HidJob { |buf, lights| { buf.len = 62; - let air_color = lights.get_air_middle(); let lights_nibbles: Vec = lights .ground .chunks(3) .rev() .flat_map(|x| x.iter().map(|y| *y >> 4)) - .chain([air_color[0] >> 4, air_color[1] >> 4, air_color[2] >> 4]) + .chain([ + lights.air_left[3] >> 4, + lights.air_left[4] >> 4, + lights.air_left[5] >> 4, + ]) .collect(); for (buf_chunk, state_chunk) in buf diff --git a/src-slider_io/src/lighting/lighting.rs b/src-slider_io/src/lighting/lighting.rs index 8726793..0601492 100644 --- a/src-slider_io/src/lighting/lighting.rs +++ b/src-slider_io/src/lighting/lighting.rs @@ -22,7 +22,6 @@ fn get_rainbow(phase: f64, desaturate: bool) -> Rgb { match desaturate { false => 1.0, true => 0.2, - _ => unreachable!(), }, 1.0, ))