Fix build issues

This commit is contained in:
Blizzard Finnegan 2023-06-01 10:31:41 -04:00
parent a4c7da99cc
commit 2c5e109c1c

View file

@ -40,7 +40,7 @@ fn main(){
log::info!("Seymour Life Testing version: {}",VERSION);
let gpio = &mut GpioPins::new();
match std::fs::read_dir("/dev/serial/by-path"){
Ok(available_ttys){
Ok(available_ttys)=>{
let mut possible_devices:Vec<Option<Device>> = Vec::new();
let mut tty_test_threads:Vec<JoinHandle<Option<Device>>> = Vec::new();
for possible_tty in available_ttys.into_iter(){
@ -134,9 +134,8 @@ fn main(){
thread.join().unwrap();
}
}
Err(_){
Err(_)=>{
log::error!("Invalid serial location! Please make sure that /dev/serial/by-path exists.");
break;
}
}
}