summaryrefslogtreecommitdiff
path: root/Justfile
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-04-14 22:39:48 +0300
committerPaul Buetow <paul@buetow.org>2026-04-14 22:39:48 +0300
commit5b0654e957c28a72957c88921bb6a785b09b08e9 (patch)
tree2c5c55bea0f3012bb1c84f9c1f976e61f3a6398e /Justfile
parent974fdc556c7a52c167229bc41fec85b175e53c8e (diff)
fix: show elapsed in seconds when <60s in edit-running window
When a fast was just started, DOWN appeared to do nothing because format_duration_hours_minutes rounds to minutes — both 8s and 0s display as "0h 00m". Now the edit window shows the exact seconds (e.g. "Elapsed 8s") for sub-minute elapsed times, giving clear feedback when UP/DOWN adjustments change the value. Also adds 'just reset-flash' recipe to recover from SPI flash corruption that causes the emulator to hang on the boot screen. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'Justfile')
-rw-r--r--Justfile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Justfile b/Justfile
index 9c5ee3b..d24e97c 100644
--- a/Justfile
+++ b/Justfile
@@ -53,6 +53,18 @@ kill:
pebble kill
# ─────────────────────────────────────────────
+# Emulator recovery
+# ─────────────────────────────────────────────
+
+# Reset the basalt SPI flash to factory state.
+# Use this when 'just dev' hangs on the Pebble boot screen — it means the
+# flash was corrupted (e.g. by killing multiple concurrent qemu processes).
+reset-flash:
+ -pebble kill
+ bunzip2 -k -c ~/.pebble-sdk/SDKs/4.9.148/sdk-core/pebble/basalt/qemu/qemu_spi_flash.bin.bz2 > ~/.pebble-sdk/4.9.148/basalt/qemu_spi_flash.bin
+ @echo "Flash reset to factory state. Run 'just dev' to reinstall."
+
+# ─────────────────────────────────────────────
# Maintenance commands
# ─────────────────────────────────────────────