mirror of
https://github.com/lynchaos/ashvale-station.git
synced 2026-09-12 12:47:49 +00:00
Two bugs, both found by checking the real board rather than the test harness. The glyphs never showed. _pick_glyph gated each one behind narrow conditions and returned None otherwise, so on the Pi's actual state (27.3 C, rain probability 0.024, condition settled, solar elevation -20.3) nothing qualified and the panel silently fell back to the ambient scenes every time. A forecast symbol is the default, not an exception, so it now always returns one of the three: cold wins, then wet, then fair. Day and night were inverted. night = _smoothstep(2.0, -8.0, elev) passes a descending range, and _smoothstep treated edge1 <= edge0 as a degenerate step returning the opposite of the intent, so the panel drew a moon at midday and a sun at midnight. Caught by rendering it and looking, not by reading it. _smoothstep now handles descending ranges, and only the degenerate equal-edge case takes the step branch. The fair-weather glyph also needed to survive after dark or it vanishes for half of every day, which is how it went missing in the first place. Same geometry, cool palette, rays drawn in to a halo.