fix(settings): final-review fixes -- revision, resulting limits, logical writes
From the whole-branch review of phase 5: - The preview's revision now covers the changes asked for, so a live change must be exactly what was previewed (any API caller, not only the page). It covers what the preview showed -- the settings block (and a Micromate's setup name) -- not the blocks a write only echoes, which are re-read at send and sent as read (a MiniMate's trigger block byte 5 differs by session, #46). - The units' limits hold on the block that would result: a range, rate or mode change alone can no longer leave a held trigger, alarm or record time over them. - Every MiniMate block read is logical, so push_config_raw no longer unescapes again (a job number of 4098, 10 02, was refused at Send); the preview runs the write's own block check, so a block it would refuse is shown as blocked. - A MiniMate's monitoring refusal says a stop makes it call in (spec). 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
385716d8e1
commit
08d0a6c0d4
9 files changed
+209
-43
No files matched your search
@@ -233,7 +233,8 @@ class FakeMiniMateClient(_Base):
|
||||
blocks["compliance"] = s3_device_info_answer()
|
||||
return blocks
|
||||
|
||||
def push_config_raw(self, event_index, compliance, trigger, waveform) -> None:
|
||||
def push_config_raw(self, event_index, compliance, trigger, waveform, *, escaped=False) -> None:
|
||||
self.pushed_escaped = escaped
|
||||
self.pushed = (bytes(event_index), bytes(compliance), bytes(trigger), bytes(waveform))
|
||||
self._write("push_config_raw")
|
||||
self.settings_blocks["compliance"] = bytes(compliance)[:2090] # read back as the unit stores it
|
||||
|
||||
Reference in new issue
Block a user