Fix build issue with main's match statement
This commit is contained in:
parent
a4c7da99cc
commit
9b80808660
1 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ fn main(){
|
||||||
log::info!("Seymour Life Testing version: {}",VERSION);
|
log::info!("Seymour Life Testing version: {}",VERSION);
|
||||||
let gpio = &mut GpioPins::new();
|
let gpio = &mut GpioPins::new();
|
||||||
match std::fs::read_dir("/dev/serial/by-path"){
|
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 possible_devices:Vec<Option<Device>> = Vec::new();
|
||||||
let mut tty_test_threads:Vec<JoinHandle<Option<Device>>> = Vec::new();
|
let mut tty_test_threads:Vec<JoinHandle<Option<Device>>> = Vec::new();
|
||||||
for possible_tty in available_ttys.into_iter(){
|
for possible_tty in available_ttys.into_iter(){
|
||||||
|
@ -134,7 +134,7 @@ fn main(){
|
||||||
thread.join().unwrap();
|
thread.join().unwrap();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Err(_){
|
Err(_)=>{
|
||||||
log::error!("Invalid serial location! Please make sure that /dev/serial/by-path exists.");
|
log::error!("Invalid serial location! Please make sure that /dev/serial/by-path exists.");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue