1
0
Fork 0

Remove assignment warning

This commit is contained in:
Priyadi Iman Nurcahyo 2017-02-12 00:07:33 +07:00
parent 2c1ef84b22
commit ce6b68f85b

View file

@ -1058,7 +1058,7 @@ void battery_poll(uint8_t level) {
void led_set_user(uint8_t usb_led) { void led_set_user(uint8_t usb_led) {
bool new_capslock = usb_led & (1<<USB_LED_CAPS_LOCK); bool new_capslock = usb_led & (1<<USB_LED_CAPS_LOCK);
if (new_capslock ^ capslock) { // capslock state is different if (new_capslock ^ capslock) { // capslock state is different
if (capslock = new_capslock) { if ((capslock = new_capslock)) {
rgbsps_set(LED_IND_NUM, 15, 0, 0); rgbsps_set(LED_IND_NUM, 15, 0, 0);
} else { } else {
rgbsps_set(LED_IND_NUM, 0, 0, 0); rgbsps_set(LED_IND_NUM, 0, 0, 0);