Fix build issues
This commit is contained in:
parent
a4c7da99cc
commit
2c5e109c1c
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue