alpha
Login
or
Join now
jmrp.io
/
kleidos
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
[READ-ONLY] Mirror of https://github.com/jmrplens/kleidos. Kleidos — Hardware BLE password manager for ESP32-S3 (M5StickC Plus2, StickS3, M5Stack Gray, T-Deck, Cardputer)
jmrplens.github.io/kleidos/
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
kleidos
/
test
/
hal
/
test_clock_source
/
at
main
2 files
José M. Requena Plens
Add display-only ClockSource record (NVS) and surface it in RTC?
11d ago
81ed09e5
clock_source_amalgam.cpp
Add display-only ClockSource record (NVS) and surface it in RTC? Record WHO set the clock last (Manual / WebAdmin / Gps; u8 clk_src in the kleidos NVS namespace) so the console and diagnostics can show the provenance of the running time. The two existing writers now tag themselves: the set-clock commit records Manual and the admin portal's time-sync handler records WebAdmin; the GPS writer lands with the sync task. RTC? appends src= as the LAST field on both the ok=0 and ok=1 lines so existing field-parsing HIL assertions stay valid. SECURITY: the tag is write-and-display only — it is never read by rtc::internal::evaluateTrust, rtc::clockTrust or brute_force_guard (grep-verified), and the running trust after any sync stays Volatile. The shared native NvsStore fake (test/support/fake_storage.h) grows from a no-op into a functional in-memory u8 model with a raw corruption seam, reset alongside the filesystem model; the set-clock commit suite's spy becomes per-key so both the tz_idx write and the Manual tag are assertable in one commit. Claude-Session: https://claude.ai/code/session_01SV58JXhfxhhc9DC6vdjBo4
1 week ago
test_clock_source.cpp
Add display-only ClockSource record (NVS) and surface it in RTC? Record WHO set the clock last (Manual / WebAdmin / Gps; u8 clk_src in the kleidos NVS namespace) so the console and diagnostics can show the provenance of the running time. The two existing writers now tag themselves: the set-clock commit records Manual and the admin portal's time-sync handler records WebAdmin; the GPS writer lands with the sync task. RTC? appends src= as the LAST field on both the ok=0 and ok=1 lines so existing field-parsing HIL assertions stay valid. SECURITY: the tag is write-and-display only — it is never read by rtc::internal::evaluateTrust, rtc::clockTrust or brute_force_guard (grep-verified), and the running trust after any sync stays Volatile. The shared native NvsStore fake (test/support/fake_storage.h) grows from a no-op into a functional in-memory u8 model with a raw corruption seam, reset alongside the filesystem model; the set-clock commit suite's spy becomes per-key so both the tz_idx write and the Manual tag are assertable in one commit. Claude-Session: https://claude.ai/code/session_01SV58JXhfxhhc9DC6vdjBo4
1 week ago