From 601923f1d109b85ee444b57f028cc4bb567beb76 Mon Sep 17 00:00:00 2001 From: Martino Ferrari Date: Wed, 7 Oct 2026 18:18:33 +0200 Subject: [PATCH] fix: a window leg's band comment names the sine it is now read against The leg moved from the square to the sine when the band proved untraversable by a +/-1 square; the comment beside the band still described the square. --- src/ui.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ui.cpp b/src/ui.cpp index 4d48820..52cc718 100644 --- a/src/ui.cpp +++ b/src/ui.cpp @@ -8604,8 +8604,9 @@ gboolean condition_probe_arm(gpointer user) { gtk_drop_down_set_selected(GTK_DROP_DOWN(a->trigger_edge_drop), edge_idx); gtk_spin_button_set_value(GTK_SPIN_BUTTON(a->trigger_width_spin), 0.010); gtk_spin_button_set_value(GTK_SPIN_BUTTON(a->trigger_timeout_spin), g_condition.timeout); - // The band for the window leg: straddling zero, well inside the square's +/-1, so each - // transition both enters and leaves it. Harmless for the other legs, which ignore `level2`. + // The band for the window leg: straddling zero and well inside the sine's +/-1, so the sine + // crosses into it and out of it twice a period. Harmless for the other legs, which ignore + // `level2`. gtk_spin_button_set_value(GTK_SPIN_BUTTON(a->trigger_level2_spin), 0.5); // Zero for every leg but the window, whose band is `[-0.5, +0.5]`. gtk_spin_button_set_value(GTK_SPIN_BUTTON(a->trigger_level_spin),