|
|
|
@ -16,7 +16,7 @@ fn main() { |
|
|
|
let mut outstream = stream.try_clone().unwrap(); |
|
|
|
let mut reader = BufReader::new(stream); |
|
|
|
let mut instructions; |
|
|
|
let input = String::from("0123456789aBcDeFhijlnOpTuY"); |
|
|
|
let input = String::from("0123456789aBcDeFhijlnOpTuY "); |
|
|
|
|
|
|
|
let mut state = Encodestate::new(); |
|
|
|
|
|
|
|
@ -40,19 +40,6 @@ fn main() { |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
let mut response = String::new(); |
|
|
|
let inst = String::from("display"); |
|
|
|
if DEBUG { |
|
|
|
print!("{} ",inst); |
|
|
|
} |
|
|
|
writeln!(outstream, "{}", inst).expect("write failed"); |
|
|
|
reader.read_line(&mut response).expect("Reading line failed"); |
|
|
|
if DEBUG { |
|
|
|
println!("{}", response); |
|
|
|
} |
|
|
|
if !response.trim_end().contains("OK") { |
|
|
|
return; |
|
|
|
} |
|
|
|
//thread::sleep(Duration::from_millis(500));
|
|
|
|
} |
|
|
|
let mut response = String::new(); |
|
|
|
|