From 03540fdc00000ceb8360cec7b2348596e1a0ff1d Mon Sep 17 00:00:00 2001 From: Brian Harrison Date: Fri, 24 Apr 2026 02:19:27 -0400 Subject: [PATCH] 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 --- minimateplus/client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/minimateplus/client.py b/minimateplus/client.py index 0fa133b..8f01f3d 100644 --- a/minimateplus/client.py +++ b/minimateplus/client.py @@ -624,6 +624,7 @@ class MiniMateClient: cur_key, stop_after_metadata=True, include_terminator=True, extra_chunks_after_metadata=extra_chunks_after_metadata, + max_chunks=128, ) if a5_frames: a5_ok = True