fix: raise max_chunks to 128 for metadata-only 5A download
For 2-second events at 1024 sps the "Project:" metadata frame appears beyond chunk 32 (the old default cap), causing the safety limit to be hit and ~34 KB of waveform data to be downloaded instead of stopping at the metadata frame. Raising max_chunks to 128 ensures stop_after_metadata=True can locate the metadata frame for record times up to ~4 seconds. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -624,6 +624,7 @@ class MiniMateClient:
|
|||||||
cur_key, stop_after_metadata=True,
|
cur_key, stop_after_metadata=True,
|
||||||
include_terminator=True,
|
include_terminator=True,
|
||||||
extra_chunks_after_metadata=extra_chunks_after_metadata,
|
extra_chunks_after_metadata=extra_chunks_after_metadata,
|
||||||
|
max_chunks=128,
|
||||||
)
|
)
|
||||||
if a5_frames:
|
if a5_frames:
|
||||||
a5_ok = True
|
a5_ok = True
|
||||||
|
|||||||
Reference in New Issue
Block a user