0
0
Fork 0

spat: Show signal groups without timing information

This commit is contained in:
Jannik Beyerstedt 2026-06-19 22:03:59 +02:00
commit ff45df8204
4 changed files with 35 additions and 24 deletions

View file

@ -179,10 +179,11 @@ async fn main(spawner: Spawner) -> ! {
let signal_groups = state.run_glosa();
for sig in &signal_groups {
println!(
"GLOSA: {} {} for {} s",
sig.maneuver, sig.phase, sig.min_end_sec
);
let duration_str = sig
.min_end_sec
.map(|v| alloc::format!("for {v} s"))
.unwrap_or_default();
println!("GLOSA: {} {} {duration_str}", sig.maneuver, sig.phase);
}
#[cfg(feature = "screen")]