1
0
Fork 0

revised led controller code to allow for more options

unable to switch picture displays
This commit is contained in:
jpetermans 2017-04-10 17:36:47 -07:00
parent a2ac883779
commit dda858c437
4 changed files with 342 additions and 135 deletions

View file

@ -42,12 +42,12 @@ void led_set(uint8_t usb_led) {
if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
// signal the LED control thread
chSysUnconditionalLock();
chMBPostI(&led_mailbox, LED_MSG_CAPS_ON);
chMBPostI(&led_mailbox, 0x59);
chSysUnconditionalUnlock();
} else {
// signal the LED control thread
chSysUnconditionalLock();
chMBPostI(&led_mailbox, LED_MSG_CAPS_OFF);
chMBPostI(&led_mailbox, 0x59);
chSysUnconditionalUnlock();
}
}