Skip to content

Commit

Permalink
Fix scancode test
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-wh committed Oct 10, 2023
1 parent 6552769 commit 64d825e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wooting-analog-sdk/src/keycode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 64d825e

Please sign in to comment.