lvmengandClaude Sonnet 4.6 72ecc8fcd6 fix(scale): 修复 RS485 多联秤地址 ≥ 10 时清零命令发送到错误设备的问题
- 新增 FixedSensorScale 继承 SensorScale,通过反射重写 zeroTwo/tareTwo
- 修复根因:SDK 将 int 地址直接拼接为十进制字符串再按十六进制解析,
  导致地址 10 发送字节 0x10(=16号秤)而非 0x0A(=10号秤)
- 修复方式:String.format("%02X", address) 确保正确的十六进制编码
- Weigher2 替换 mSensorScale 字段类型为 FixedSensorScale
- WeightUtil.tareTwo 移除 isTaring 防重复逻辑,简化为直接调用 zeroTwo

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-20 14:58:27 +08:00
2025-08-11 18:32:04 +08:00
2025-08-11 18:32:04 +08:00
2025-08-11 18:32:04 +08:00
2025-08-11 18:29:34 +08:00
2025-08-11 18:32:04 +08:00
S
Description
菜品配比
Readme
111 MiB
Languages
Kotlin 85.9%
Java 13%
DM 1.1%