fix(protocol): update extra chunk fetching logic to stop at silence detection

This commit is contained in:
2026-04-23 18:28:14 -04:00
parent ecd980d345
commit fa887b85d9
2 changed files with 21 additions and 16 deletions
+1 -1
View File
@@ -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,