Add passive_refresh_state

This commit is contained in:
Lennard Kittner
2025-05-16 13:20:09 +02:00
parent 536ffcd5e2
commit ea4a76739f
3 changed files with 34 additions and 13 deletions

View File

@@ -110,14 +110,11 @@ fn main() {
std::thread::sleep(Duration::from_secs_f64(0.5));
if let Err(error) = device.refresh_state() {
if let Err(error) = device.active_refresh_state() {
eprintln!("{error}");
std::process::exit(1);
};
println!(
"{}",
device.get_device_state()
);
println!("{}", device.get_device_state());
}
#[test]