feat(micromate): read the schedule file (read-only)
MicromateProtocol.read_file: 0x94 + path, then 0x48 pages to an all-zero reply -- THOR's frames byte for byte (UM12947, 2026-09-24), including params[3] = 1 on 0x94 and params[7] = 1 on the first 0x48. micromate.schedule parses the 260-byte records (two- and five-entry schedules from THOR's captures) and names the scheduled starts that would load a setup other than the active one, ignoring case. The client gains the raw (unstripped) active-setup name and the prefs / trigger / setup content reads a setup push sends back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
This commit is contained in:
1 parent
5ba72740dd
commit
d0335dbbbd
6 files changed
+281
-1
No files matched your search
@@ -81,7 +81,7 @@ def test_a_frame_that_is_not_a_request_is_refused_not_sent():
|
||||
|
||||
def test_every_protocol_read_sub_is_in_the_read_table():
|
||||
consts = {k: v for k, v in vars(mm_proto).items() if k.startswith("SUB_")}
|
||||
assert len(consts) == 19
|
||||
assert len(consts) == 21 # + 0x48 and 0x94, the file read (phase 5)
|
||||
assert set(consts.values()) <= set(READ_SUBS)
|
||||
assert {0x94, 0x48} <= set(READ_SUBS)
|
||||
|
||||
|
||||
Reference in new issue
Block a user