EV-20 C19: a held read does nothing to a phase change under way
The C17 branch (end a phase change at its 0 A and pause) ran on a held read too, so one failed read just after a select stopped the car for the 600 s phase gap. A held read now leaves the change alone; it goes on at the next real reading. The silent meter still ends it at its 0 A. Rows: test_ev20_rig section 9. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w
This commit is contained in:
@@ -1146,6 +1146,11 @@ class SolarWriter(ManualWriter):
|
||||
gap = self._gap_ok(now)
|
||||
if self.sent_a == 0.0 and not self.taken:
|
||||
self.plan.ok_since = None # 0 A first, then the start rule
|
||||
if self.seq is not None and self.held_step:
|
||||
# SPIKE-06 C19: a held read decides nothing for a phase change
|
||||
# under way (no write, no pause); it goes on at the next real
|
||||
# reading. A gap that reaches `stale_input_s` takes the safe path.
|
||||
return
|
||||
if self.seq is not None and self.nz_block:
|
||||
# C17: a phase change under way ends at its 0 A; no select and no
|
||||
# closing current while the meter is silent. The plan pauses and
|
||||
|
||||
Reference in New Issue
Block a user