diff options
| author | cirakg <cirakg@cirakg.xyz> | 2026-10-21 03:55:10 +0200 |
|---|---|---|
| committer | cirakg <cirakg@cirakg.xyz> | 2026-10-21 03:55:10 +0200 |
| commit | 5e8ac1e2f5a660e55ea132996e1d5730cfa4fa64 (patch) | |
| tree | 9bb99bdca1ef8f33c93c5100816448681329d810 /source/util/Diag.mc | |
| parent | 88f1cac4fa530fc30fd6ef01970af11c7a959b8e (diff) | |
feat(glance): show the favourite code in the glance (opt-in)
With "Show the favourite code in the glance" on, the glance shows the
code of the first favourite TOTP or Steam entry without the PIN, with a
countdown bar. The glance can't open the vault, so the About scan seals
that entry under "g" (device key, aad OTPW-GL-1) after every change, and
removes it when the option is off or no entry qualifies; the glance also
reads the option itself. HKDF moves to its own module so the glance loads
only the crypto it needs (37 % of its 64 KB). Manage entry gains "Mark as
favourite (glance)" and "Remove favourite", queued for locked entries
like the other changes. Lines are inset on round screens so the
Instinct 3's curved glance corner doesn't cut them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'source/util/Diag.mc')
| -rw-r--r-- | source/util/Diag.mc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/util/Diag.mc b/source/util/Diag.mc index 0ab121f..8fba19d 100644 --- a/source/util/Diag.mc +++ b/source/util/Diag.mc @@ -56,6 +56,18 @@ module Diag { function firstFrame() as Void { } + // The glance's memory after its first draw (README 18: at most 70 % of + // the glance's 64 KB; `make memtest` checks it). + (:debug) + function glanceMemory() as Void { + var stats = System.getSystemStats(); + System.println("DIAG glance mem_used=" + stats.usedMemory + " mem_total=" + stats.totalMemory); + } + + (:release) + function glanceMemory() as Void { + } + // A screen finished its first draw since it was shown. (:debug) function shown(screen as String) as Void { |
