aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/infinity60/led.c
diff options
context:
space:
mode:
authorGravatar jpetermans <tibcmhhm@gmail.com>2017-05-10 15:53:59 -0700
committerGravatar jpetermans <tibcmhhm@gmail.com>2017-05-10 15:53:59 -0700
commit164a6c994b797b66634f7a1c12fcaffd0ffd7506 (patch)
tree067b2b81488a218b87c1d1c73cb1c6e93704b394 /keyboards/infinity60/led.c
parenta144968807f5bf98b2c41cfe153f3df780ed4eaa (diff)
downloadqmk_firmware-164a6c994b797b66634f7a1c12fcaffd0ffd7506.tar.gz
reorder mailbox msg data; formatting
Diffstat (limited to 'keyboards/infinity60/led.c')
-rw-r--r--keyboards/infinity60/led.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/keyboards/infinity60/led.c b/keyboards/infinity60/led.c
index d60c76fd8..53147a78a 100644
--- a/keyboards/infinity60/led.c
+++ b/keyboards/infinity60/led.c
@@ -30,23 +30,23 @@ void led_set(uint8_t usb_led) {
if (usb_led & (1<<USB_LED_NUM_LOCK)) {
chSysUnconditionalLock();
- msg=(TOGGLE_NUM_LOCK << 8) | 1;
+ msg=(1 << 8) | TOGGLE_NUM_LOCK;
chMBPostI(&led_mailbox, msg);
chSysUnconditionalUnlock();
} else {
chSysUnconditionalLock();
- msg=(TOGGLE_NUM_LOCK << 8) | 0;
+ msg=(0 << 8) | TOGGLE_NUM_LOCK;
chMBPostI(&led_mailbox, msg);
chSysUnconditionalUnlock();
}
if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
chSysUnconditionalLock();
- msg=(TOGGLE_CAPS_LOCK << 8) | 1;
+ msg=(1 << 8) | TOGGLE_CAPS_LOCK;
chMBPostI(&led_mailbox, msg);
chSysUnconditionalUnlock();
} else {
chSysUnconditionalLock();
- msg=(TOGGLE_CAPS_LOCK << 8) | 0;
+ msg=(0 << 8) | TOGGLE_CAPS_LOCK;
chMBPostI(&led_mailbox, msg);
chSysUnconditionalUnlock();
}