1
0
Fork 0

simplify battery calculation for now

This commit is contained in:
Priyadi Iman Nurcahyo 2017-02-11 14:50:43 +07:00
parent b31ac35441
commit 9fc3afbef4
4 changed files with 92 additions and 24 deletions

View file

@ -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();
}