refactor: remove 17-byte FFE4 and 33-byte FFE1 legacy compat code

- Remove parseVendorStatus 17-byte branch (FFE4 is now 19 bytes)
- Remove parseVendorStatus 33-byte branch (FFE1 is now 34 bytes)
- Remove buildVendorCommand33 deprecated alias
- Remove fitting/run_state !== -1 guards in connection.js
- Update commands.js to use buildVendorCommand directly
这个提交包含在:
Guoguo
2026-06-24 05:13:36 -07:00
父节点 29975c6043
当前提交 ec5b8584ec
修改 4 个文件,包含 3 行新增53 行删除
+2 -6
查看文件
@@ -101,12 +101,8 @@ function handleValueChange(res) {
}
emit('adc', { pd: parsed.pd, vbat: vbatMv, battery: batteryPct, fitting: parsed.fitting, run_state: parsed.run_state })
emit('battery', { battery: batteryPct, vbat: vbatMv })
if (parsed.fitting !== -1) {
emit('fitting', { fitting: parsed.fitting })
}
if (parsed.run_state !== -1) {
emit('run_state', { run_state: parsed.run_state })
}
emit('fitting', { fitting: parsed.fitting })
emit('run_state', { run_state: parsed.run_state })
return
}