core: ibmpc: Check response of set indicator command
This commit is contained in:
parent
27812520eb
commit
820d96bdab
1 changed files with 3 additions and 2 deletions
|
|
@ -336,6 +336,7 @@ NEXT:
|
||||||
/* send LED state to keyboard */
|
/* send LED state to keyboard */
|
||||||
void ibmpc_host_set_led(uint8_t led)
|
void ibmpc_host_set_led(uint8_t led)
|
||||||
{
|
{
|
||||||
ibmpc_host_send(0xED);
|
if (0xFA == ibmpc_host_send(0xED)) {
|
||||||
ibmpc_host_send(led);
|
ibmpc_host_send(led);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue