文件
jw-beauty/miniprogram/services/ble
Guoguo a9a1899b49 fix(ble): treat Byte17 != 0 as fitting-ok (matches firmware semantics)
Firmware reports fitting via 'Byte17 != 0', not a dedicated bit — during scan
Byte17 carries the wave marker (0x20/0x40/0x60/0x80), all non-zero, so it also
signals fitting-ok. The old 'byte17 & 0x1F == 1' test never matched (low 5 bits
are 0 when the wave marker occupies the high 3), so auto-scan waited forever on
fitting==1 and then mis-fired '未贴合失败'. Verified against real-device frames:
scan now collects and buckets all four wavelengths.
2026-07-28 18:43:01 -07:00
..