Convert to error states

This commit is contained in:
2024-12-18 21:20:00 +01:00
parent 8f6fbb4778
commit cd3282a69d
2 changed files with 55 additions and 1 deletions

View File

@@ -152,6 +152,10 @@ async fn main() -> Result<()>{
println!("Current state: {}", &current_state_response.current_state);
}
if let ImprovPacket::ErrorState(error_state) = ImprovPacket::try_from_raw_packet(&raw_packet).unwrap() {
println!("Error state: {}", &error_state.error_state);
}
},
};