Skip to content

Commit

Permalink
make USBQuirks::toggleKeyboardProtocol a noop
Browse files Browse the repository at this point in the history
  • Loading branch information
tlyu committed Nov 26, 2023
1 parent 0552b04 commit f21caa2
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,8 @@ namespace kaleidoscope {
namespace plugin {

void USBQuirks::toggleKeyboardProtocol() {
uint8_t new_protocol = !Runtime.hid().keyboard().getProtocol();

Runtime.detachFromHost();
Runtime.hid().keyboard().setDefaultProtocol(new_protocol);
delay(1000);
Runtime.attachToHost();
// Do nothing, because the old behavior might cause HID-aware hosts to
// receive no input, now that we mark the Boot Keyboard report as padding
}

} // namespace plugin
Expand Down

0 comments on commit f21caa2

Please sign in to comment.