Convert to error states
This commit is contained in:
@@ -152,6 +152,10 @@ async fn main() -> Result<()>{
|
||||
println!("Current state: {}", ¤t_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);
|
||||
}
|
||||
|
||||
},
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user