fix: audit fixes — add checksum_ok to params parse, passthrough control in command-sync

- parseVendorStatus: add checksum_ok verification for 34-byte and 33-byte params
- command-sync.js: passthrough control, current_gain, hold_time from server payload
- Mark buildVendorCommand33 as deprecated alias
这个提交包含在:
Guoguo
2026-06-12 09:02:43 -07:00
父节点 36f12e098e
当前提交 8a4f9382e4
修改 2 个文件,包含 9 行新增1 行删除
+4 -1
查看文件
@@ -16,7 +16,10 @@ function execute(command) {
wavelength: payload.wavelength,
brightness: payload.brightness,
duration_ms: payload.duration_ms,
mode: payload.mode
mode: payload.mode,
control: payload.control,
current_gain: payload.current_gain,
hold_time: payload.hold_time
})
case ble.CMD.START:
return ble.startTreatment(payload.region_mask)