+ } else {
+ if error_state {
+ error_state = false;
+ println!("End of erroneous state");
+ }
+
+ if time::Instant::now() - time_last_state_printed >= STATE_PRINT_PERIOD {
+ println!("No error detected");
+ time_last_state_printed = time::Instant::now();
+ }