From 0813977c220269da7fad1c9db0ba240d91f26304 Mon Sep 17 00:00:00 2001 From: Sean Young Date: Thu, 15 Aug 2024 23:00:34 +0100 Subject: [PATCH] Add feature for tests over rc-loopback (disabled by default) Signed-off-by: Sean Young --- cir/Cargo.toml | 4 ++++ cir/src/bin/commands/transmit.rs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cir/Cargo.toml b/cir/Cargo.toml index 0047526..c870406 100644 --- a/cir/Cargo.toml +++ b/cir/Cargo.toml @@ -36,3 +36,7 @@ libirctl = { workspace = true } libkcodec = { workspace = true } rand = "0.8" pretty_assertions = "1.4" + +[features] +default = [] +loopback-tests = [] diff --git a/cir/src/bin/commands/transmit.rs b/cir/src/bin/commands/transmit.rs index 6672bb5..174ec59 100644 --- a/cir/src/bin/commands/transmit.rs +++ b/cir/src/bin/commands/transmit.rs @@ -63,7 +63,7 @@ pub fn transmit(args: &crate::App, transmit: &crate::Transmit) { .iter() .fold(0, |acc, t| acc | (1 << (t - 1))); - info!("debug: setting transmitter mask {:08x}", mask); + info!("debug: setting transmitter mask {:#b}", mask); match lircdev.set_transmitter_mask(mask) { Ok(v) => v,