usb_usb: Fix for Apple Magic Keyboard(A1644/A1843)
The device has keyboard function at interface 1, not 0. #606
This commit is contained in:
parent
4df8a27f72
commit
cdf4bfc3ae
2 changed files with 5 additions and 5 deletions
|
|
@ -220,10 +220,10 @@ void matrix_print(void) {
|
|||
|
||||
void led_set(uint8_t usb_led)
|
||||
{
|
||||
if (kbd1.isReady()) kbd1.SetReport(0, 0, 2, 0, 1, &usb_led);
|
||||
if (kbd2.isReady()) kbd2.SetReport(0, 0, 2, 0, 1, &usb_led);
|
||||
if (kbd3.isReady()) kbd3.SetReport(0, 0, 2, 0, 1, &usb_led);
|
||||
if (kbd4.isReady()) kbd4.SetReport(0, 0, 2, 0, 1, &usb_led);
|
||||
if (kbd1.isReady()) kbd1.SetLed(&usb_led);
|
||||
if (kbd2.isReady()) kbd2.SetLed(&usb_led);
|
||||
if (kbd3.isReady()) kbd3.SetLed(&usb_led);
|
||||
if (kbd4.isReady()) kbd4.SetLed(&usb_led);
|
||||
}
|
||||
|
||||
// We need to keep doing UHS2 USB::Task() to initialize keyboard
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue