diff --git a/src/pm3.rs b/src/pm3.rs index d842a92..5bf98c3 100644 --- a/src/pm3.rs +++ b/src/pm3.rs @@ -24,6 +24,8 @@ pub async fn run_pm3(tx: mpsc::Sender) -> Result<(), Box> { .arg("-c") .arg("lf hitag reader -@") .stdout(Stdio::piped()) + .stderr(Stdio::null()) + .stdin(Stdio::null()) .spawn()?; let stdout = cmd.stdout.take().ok_or("Failed to get stdout")?; @@ -31,7 +33,7 @@ pub async fn run_pm3(tx: mpsc::Sender) -> Result<(), Box> { let mut reader = BufReader::new(stdout).lines(); while let Some(line) = reader.next_line().await? { - trace!("PM3: {}", line); + trace!("PM3: {line}"); if let Some(uid) = super::parser::parse_line(&line) { tx.send(uid).await?; }