Skip to content

Commit

Permalink
Fix irctl manchester encoding test
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Young <[email protected]>
  • Loading branch information
seanyoung committed May 11, 2024
1 parent e5a2cc8 commit 3b7e4e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cir/tests/irctl_encode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 3b7e4e7

Please sign in to comment.