summaryrefslogtreecommitdiffstats
path: root/keyboards/handwired/promethium/keymaps
diff options
context:
space:
mode:
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();
}