core: ibmpc: Check response of set indicator command

main
tmk 2020-05-08 21:30:41 +09:00
parent 27812520eb
commit 820d96bdab
1 changed files with 3 additions and 2 deletions

View File

@ -336,6 +336,7 @@ NEXT:
/* send LED state to keyboard */
void ibmpc_host_set_led(uint8_t led)
{
ibmpc_host_send(0xED);
ibmpc_host_send(led);
if (0xFA == ibmpc_host_send(0xED)) {
ibmpc_host_send(led);
}
}