Skip to content

Commit

Permalink
usb_usb: Fix for Apple Magic Keyboard(A1644/A1843)
Browse files Browse the repository at this point in the history
The device has keyboard function at interface 1, not 0. #606
  • Loading branch information
tmk committed Jan 22, 2023
1 parent 4df8a27 commit cdf4bfc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions converter/usb_usb/usb_usb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cdf4bfc

Please sign in to comment.