diff --git a/src/decoder/mod.rs b/src/decoder/mod.rs index a49eae37d2dd64c37faa55d9595a078ece93cf90..ac867166b9135f654daa15aaeb7833a7167e48bb 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")))