From 64d825eb09b91f4293007905013745d2bcbdbdf0 Mon Sep 17 00:00:00 2001 From: simon-wh Date: Tue, 10 Oct 2023 11:23:42 +0100 Subject: [PATCH] Fix scancode test --- wooting-analog-sdk/src/keycode.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wooting-analog-sdk/src/keycode.rs b/wooting-analog-sdk/src/keycode.rs index 0aec658..29d1dc4 100644 --- a/wooting-analog-sdk/src/keycode.rs +++ b/wooting-analog-sdk/src/keycode.rs @@ -357,7 +357,7 @@ mod tests { for keycode in keycode_types.iter() { if *keycode == KeycodeType::ScanCode1 { let val = hid_to_code(code, keycode).unwrap_or(0); - assert!(val < 0x100 || (val & 0xFF00) == 0xE000); + assert!(val < 0x100 || (val & 0xFF00) == 0xE000|| (val & 0xFF00) == 0xE100); } else { assert!(hid_to_code(code, keycode).unwrap_or(0) < 0x100); }