Skip to content

Commit 5af4764

Browse files
authored
Update battery.c
1 parent 1762c92 commit 5af4764

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modules/my-battery/src/battery.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
* Copyright (c) 2020 The ZMK Contributors
33
*
44
* SPDX-License-Identifier: MIT
@@ -45,7 +45,7 @@ static uint8_t lithium_ion_mv_to_pct(int16_t bat_mv) {
4545
return 0;
4646
}
4747

48-
return bat_mv / 6 - 300;
48+
return 29;
4949
}
5050

5151
#endif // IS_ENABLED(CONFIG_ZMK_BATTERY_REPORTING_FETCH_MODE_LITHIUM_VOLTAGE)

0 commit comments

Comments
 (0)