Skip to content

Commit

Permalink
Replace kDP_SetDefaultsAndDisable with kDP_SetDefaults to fix keyboar…
Browse files Browse the repository at this point in the history
…d disabled in some UEFI (#53)
  • Loading branch information
diepeterpan authored Sep 29, 2022
1 parent 15fd4cd commit 2f0d204
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion VoodooPS2Keyboard/VoodooPS2Keyboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1923,7 +1923,7 @@ void ApplePS2Keyboard::setKeyboardEnable(bool enable)
// (keyboard enable/disable command)
TPS2Request<2> request;
request.commands[0].command = kPS2C_WriteDataPort;
request.commands[0].inOrOut = enable ? kDP_Enable : kDP_SetDefaultsAndDisable;
request.commands[0].inOrOut = enable ? kDP_Enable : kDP_SetDefaults;
request.commands[1].command = kPS2C_ReadDataPortAndCompare;
request.commands[1].inOrOut = kSC_Acknowledge;
request.commandsCount = 2;
Expand Down

0 comments on commit 2f0d204

Please sign in to comment.