Skip to content

Commit

Permalink
CLeaned out debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
jpetermans committed May 8, 2017
1 parent 52f671c commit 2c5b551
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 266 deletions.
4 changes: 0 additions & 4 deletions keyboards/infinity60/led.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,26 +29,22 @@ void led_set(uint8_t usb_led) {
msg_t msg;

if (usb_led & (1<<USB_LED_NUM_LOCK)) {
// signal the LED control thread
chSysUnconditionalLock();
msg=(TOGGLE_NUM_LOCK << 8) | 1;
chMBPostI(&led_mailbox, msg);
chSysUnconditionalUnlock();
} else {
// signal the LED control thread
chSysUnconditionalLock();
msg=(TOGGLE_NUM_LOCK << 8) | 0;
chMBPostI(&led_mailbox, msg);
chSysUnconditionalUnlock();
}
if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
// signal the LED control thread
chSysUnconditionalLock();
msg=(TOGGLE_CAPS_LOCK << 8) | 1;
chMBPostI(&led_mailbox, msg);
chSysUnconditionalUnlock();
} else {
// signal the LED control thread
chSysUnconditionalLock();
msg=(TOGGLE_CAPS_LOCK << 8) | 0;
chMBPostI(&led_mailbox, msg);
Expand Down
Loading

0 comments on commit 2c5b551

Please sign in to comment.