支持传感器独立校准文件与批量配置启动

保留逐台添加,并通过显式配置一次连接全组;失败时撤销本批新增连接。通过 35 项回归测试、真实 SDK 校准与 1–4 路验证、Ruff 和文档检查。
This commit is contained in:
ykcheungab
2026-10-14 16:11:15 +08:00
parent 133a98e418
commit a723e96dcc
7 changed files with 460 additions and 24 deletions
+1 -1
View File
@@ -252,7 +252,7 @@ class ManualAddTests(HardwareFreeTest):
controller = uart.UartFingerController(ser)
with patch.object(controller.bank, "add", return_value=1) as add:
controller._dispatch('add "/tmp/test clip.mp4" "my config.json"')
add.assert_called_once_with("/tmp/test clip.mp4", config="my config.json")
add.assert_called_once_with("/tmp/test clip.mp4", config="my config.json", cal_path=None)
self.assertEqual(ser.output[-1], "OK added 1")
def test_removed_commands_and_arguments_are_rejected(self):