fix(protocol): update extra chunk fetching logic to stop at silence detection
This commit is contained in:
+1
-1
@@ -894,7 +894,7 @@ def device_event_blastware_file(
|
||||
rectime = float(info.compliance_config.record_time or 1.0)
|
||||
except (AttributeError, TypeError, ValueError):
|
||||
pass
|
||||
extra_chunks = max(4, int(rectime * 4) + 4)
|
||||
extra_chunks = max(4, int(rectime * 6) + 8) # generous cap; silence detection stops early
|
||||
log.info("blastware_file: rectime=%.1fs → extra_chunks_cap=%d", rectime, extra_chunks)
|
||||
events = client.get_events(
|
||||
full_waveform=False,
|
||||
|
||||
Reference in New Issue
Block a user