fix: add STRT invalid detction, ach server passes config for get events,
This commit is contained in:
+5
-1
@@ -662,7 +662,11 @@ def device_event_waveform(
|
||||
with _build_client(port, baud, host, tcp_port, timeout=120.0) as client:
|
||||
info = client.connect()
|
||||
# stop_after_index avoids downloading events beyond the one requested.
|
||||
events = client.get_events(full_waveform=True, stop_after_index=index)
|
||||
events = client.get_events(
|
||||
full_waveform=True,
|
||||
stop_after_index=index,
|
||||
compliance_config=info.compliance_config if info else None,
|
||||
)
|
||||
matching = [ev for ev in events if ev.index == index]
|
||||
return matching[0] if matching else None, info
|
||||
ev, info = _run_with_retry(_do, is_tcp=_is_tcp(host))
|
||||
|
||||
Reference in New Issue
Block a user