aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/handwired/promethium/keymaps/priyadi/keymap.c
diff options
context:
space:
mode:
authorGravatar Priyadi Iman Nurcahyo <priyadi@priyadi.net>2017-02-11 14:50:43 +0700
committerGravatar Priyadi Iman Nurcahyo <priyadi@priyadi.net>2017-02-11 14:50:43 +0700
commit9fc3afbef4b3ecc8568c37f247c3c7f1ec87a4c1 (patch)
tree2eb27cc15f1f14192481d5051939e86139c28331 /keyboards/handwired/promethium/keymaps/priyadi/keymap.c
parentb31ac35441a8117877e446b8467e3e34e0a4505b (diff)
downloadqmk_firmware-9fc3afbef4b3ecc8568c37f247c3c7f1ec87a4c1.tar.gz
simplify battery calculation for now
Diffstat (limited to 'keyboards/handwired/promethium/keymaps/priyadi/keymap.c')
-rw-r--r--keyboards/handwired/promethium/keymaps/priyadi/keymap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/keyboards/handwired/promethium/keymaps/priyadi/keymap.c b/keyboards/handwired/promethium/keymaps/priyadi/keymap.c
index 6eb4e903f..992a03a41 100644
--- a/keyboards/handwired/promethium/keymaps/priyadi/keymap.c
+++ b/keyboards/handwired/promethium/keymaps/priyadi/keymap.c
@@ -987,8 +987,8 @@ void matrix_scan_user(void) {
led_set_layer_indicator();
}
-void battery_poll(float percentage) {
- rgbsps_sethsv(LED_IND_BATTERY, percentage*120/100, 255, 15);
+void battery_poll(uint8_t level) {
+ rgbsps_sethsv(LED_IND_BATTERY, level * 120/255, 255, 15);
rgbsps_send();
}