biscuit

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 1eb1450686030116ffa5c9ff107e2cb52acd2551
parent b216e9c331619618f656e16bb5bea6d6cd636f8b
Author: Daniel Barlow <dan@telent.net>
Date:   Tue, 10 Mar 2026 09:19:15 +0000

print --- if we don't have speed information

Diffstat:
Mpkgs/maps/main.fnl | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/pkgs/maps/main.fnl b/pkgs/maps/main.fnl @@ -89,7 +89,7 @@ label.readout { app-state { :time-of-day 0 :elapsed-time 0 - :speed 14 + :speed nil :lat 49 :lon 0 :zoom 17 @@ -386,7 +386,9 @@ label.readout { (each [name widget (pairs state-widgets)] (case name :speed (widget:set_label - (string.format "%.1f km/h" (* app-state.speed 3.6))) + (case app-state.speed + s (string.format "%.1f km/h" (* s 3.6)) + nil "---")) :osm (when (not (and ; false (= old-state.lat app-state.lat)