summaryrefslogtreecommitdiff
path: root/keyboards/handwired/promethium/keymaps
diff options
context:
space:
mode:
authorPriyadi Iman Nurcahyo <priyadi@priyadi.net>2017-02-11 14:50:43 +0700
committerPriyadi Iman Nurcahyo <priyadi@priyadi.net>2017-02-11 14:50:43 +0700
commit9fc3afbef4b3ecc8568c37f247c3c7f1ec87a4c1 (patch)
tree2eb27cc15f1f14192481d5051939e86139c28331 /keyboards/handwired/promethium/keymaps
parentb31ac35441a8117877e446b8467e3e34e0a4505b (diff)
simplify battery calculation for now
Diffstat (limited to 'keyboards/handwired/promethium/keymaps')
-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 6eb4e903f7..992a03a417 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();
}