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:
tmk 2023-01-22 18:05:10 +09:00
parent 4df8a27f72
commit cdf4bfc3ae
2 changed files with 5 additions and 5 deletions

View file

@ -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

@ -1 +1 @@
Subproject commit 35606b2a9bb1e02e1adac14a8484c32d7a5e9f1c
Subproject commit 70ca604e54a5ba8bbc8d47dcb289a8be2a9a4161