Move comment

This commit is contained in:
sctanf
2026-02-26 13:57:36 -06:00
parent 24df308933
commit ff35a844c1

View File

@@ -268,9 +268,9 @@ class HIDCommon {
}
// -1: Not known (e.g. not yet calculated after wake up, reusing known value is okay), 0: N/A (e.g. charging)
if (batt != null) {
// Server displays 0% if received 255 or -1, otherwise 0 will hide battery icon
tracker.batteryLevel = if (batt == 128) -1f else (batt and 127).toFloat()
}
// Server displays 0% if received 255 or -1, otherwise 0 will hide battery icon
if (batt_v != null) {
tracker.batteryVoltage = (batt_v.toFloat() + 245f) / 100f
}