修改的标签走队列模式

This commit is contained in:
Ivey Song
2026-06-15 11:34:43 +08:00
parent bfd3fa27b3
commit ababd644ab
4 changed files with 17 additions and 27 deletions

View File

@@ -163,7 +163,7 @@ def main():
if ext_label is not None:
# 将标签写入当前包所有5个采样点的第65通道 (index 64)
# 覆盖全部采样点确保 event_inner_idx 无论落在哪个位置都能被正确检测
packet[:, 64] = float(ext_label)
packet[:, 64][0] = float(ext_label)
ts = datetime.now().strftime('%H:%M:%S')
print(f"[{ts}] 打标签: label={ext_label} -> ch64[all 5 samples] (global_sample_idx={global_sample_idx})")