revised led controller code to allow for more options
unable to switch picture displays
This commit is contained in:
parent
a2ac883779
commit
dda858c437
4 changed files with 342 additions and 135 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue