Fix battery value HID

This commit is contained in:
loucass003 committed 2026-04-22 03:53:29 +02:00
1 parent 951b96d548
commit 428f2ba774
1 file changed
+1 -1
@@ -59,7 +59,7 @@ private fun decodeAccel(data: ByteArray, offset: Int): Vector3 {
)
}
private fun decodeBattery(raw: Int): Float = if (raw == 128) 1f else (raw and 127).toFloat()
private fun decodeBattery(raw: Int): Float = if (raw == 128) 1f else (raw and 127).toFloat() / 100f
private fun decodeBatteryVoltage(raw: Int): Float = (raw.toFloat() + 245f) / 100f