summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPriyadi Iman Nurcahyo <priyadi@priyadi.net>2017-02-12 00:07:33 +0700
committerPriyadi Iman Nurcahyo <priyadi@priyadi.net>2017-02-12 00:07:33 +0700
commitce6b68f85b1e09a3912fb395ed4d6b35bb0f065d (patch)
tree0fcd18d1ab19bdcab78ccd3144d2048df7a76326
parent2c1ef84b226c21d11e54d93cf76d8aa356cb725a (diff)
Remove assignment warning
-rw-r--r--keyboards/handwired/promethium/keymaps/priyadi/keymap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/keyboards/handwired/promethium/keymaps/priyadi/keymap.c b/keyboards/handwired/promethium/keymaps/priyadi/keymap.c
index e35e42488b..52b186c409 100644
--- a/keyboards/handwired/promethium/keymaps/priyadi/keymap.c
+++ b/keyboards/handwired/promethium/keymaps/priyadi/keymap.c
@@ -1058,7 +1058,7 @@ void battery_poll(uint8_t level) {
void led_set_user(uint8_t usb_led) {
bool new_capslock = usb_led & (1<<USB_LED_CAPS_LOCK);
if (new_capslock ^ capslock) { // capslock state is different
- if (capslock = new_capslock) {
+ if ((capslock = new_capslock)) {
rgbsps_set(LED_IND_NUM, 15, 0, 0);
} else {
rgbsps_set(LED_IND_NUM, 0, 0, 0);