Add some debug stuff

This commit is contained in:
Lennard Kittner
2025-09-17 12:23:10 +02:00
parent b9028fe287
commit 97ef1d40ad
3 changed files with 27 additions and 7 deletions

View File

@@ -62,6 +62,13 @@ fn main() {
}
};
println!("State before doing anything");
if let Err(error) = device.active_refresh_state() {
eprintln!("{error}");
std::process::exit(1);
};
println!("{}", device.get_device_state());
if let Some(delay) = matches.get_one::<u8>("automatic_shutdown") {
let delay = *delay as u64;
if let Some(packet) =
@@ -127,6 +134,7 @@ fn main() {
std::thread::sleep(Duration::from_secs_f64(0.5));
println!("State after potentially setting some stuff");
if let Err(error) = device.active_refresh_state() {
eprintln!("{error}");
std::process::exit(1);