Skip to content
Snippets Groups Projects
Commit a7730224 authored by Stephen D's avatar Stephen D
Browse files

forgot to wire up a config option

parent 35afe54a
No related branches found
No related tags found
No related merge requests found
Pipeline #9283 passed
......@@ -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")))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment