From a7730224d250ad458e0df583c2f83f8c124fbf27 Mon Sep 17 00:00:00 2001
From: Stephen D <webmaster@scd31.com>
Date: Mon, 17 Jun 2024 22:20:19 -0300
Subject: [PATCH] forgot to wire up a config option

---
 src/decoder/mod.rs | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/decoder/mod.rs b/src/decoder/mod.rs
index a49eae3..ac86716 100644
--- a/src/decoder/mod.rs
+++ b/src/decoder/mod.rs
@@ -20,9 +20,7 @@ mod packet;
 mod rtl;
 
 pub fn decode_forever(felinet_send: mpsc::Sender<SemiPacketIn>, config: &Config, uuid: &Uuid) {
-    const USE_STDIN: bool = false;
-
-    let bytes: Box<dyn Iterator<Item = u8>> = if USE_STDIN {
+    let bytes: Box<dyn Iterator<Item = u8>> = if config.use_stdin {
         let stdin = io::stdin();
 
         Box::new(stdin.bytes().map(|x| x.expect("Could not read from stdin")))
-- 
GitLab