From 3b7e4e7873095bf986c6bb26389e1ff0c19f9d50 Mon Sep 17 00:00:00 2001 From: Sean Young Date: Sat, 11 May 2024 20:13:35 +0100 Subject: [PATCH] Fix irctl manchester encoding test Signed-off-by: Sean Young --- cir/tests/irctl_encode.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cir/tests/irctl_encode.rs b/cir/tests/irctl_encode.rs index 0a303df..ba51627 100644 --- a/cir/tests/irctl_encode.rs +++ b/cir/tests/irctl_encode.rs @@ -20,7 +20,7 @@ fn irctl_compare_encode(path: &Path, scancode: u32, our_keymap: &Keymap) { let mut length = 0; - if ["pulse_distance", "pulse_length", "manchster"].contains(&our_keymap.protocol.as_str()) { + if ["pulse_distance", "pulse_length", "manchester"].contains(&our_keymap.protocol.as_str()) { unsafe { encode_bpf_protocol(keymap, scancode, buf.as_mut_ptr(), &mut length) }; } else { let protocol = unsafe { @@ -66,7 +66,7 @@ fn recurse(path: &Path) { recurse(&path); } else if path.to_string_lossy().ends_with(".toml") { for keymap in Keymap::parse(&path).unwrap() { - if ["pulse_distance", "pulse_length", "manchster"] + if ["pulse_distance", "pulse_length", "manchester"] .contains(&keymap.protocol.as_str()) { for scancode in keymap.scancodes.keys() {