Error logging to console a bit

This commit is contained in:
JP Stringham
2026-02-04 12:08:48 -05:00
parent 473eff74c8
commit 49785e9707
2 changed files with 5 additions and 1 deletions

View File

@@ -1,3 +1,4 @@
#[derive(Debug, PartialEq, Eq)]
pub enum RemotePicoError { pub enum RemotePicoError {
ConnectionRefused, ConnectionRefused,
StreamWriteError, StreamWriteError,

View File

@@ -28,7 +28,10 @@ fn main() {
writeln!(log_file, "{}", vals_str.join(", ")).unwrap(); writeln!(log_file, "{}", vals_str.join(", ")).unwrap();
} }
Err(_) => writeln!(log_file, "E, E, E, E").unwrap(), Err(e) => {
println!("Error connecting to pico: {:?}", e);
writeln!(log_file, "E, E, E, E").unwrap();
}
} }
} }
} }