From: tmk Date: Fri, 8 May 2020 12:30:41 +0000 (+0900) Subject: core: ibmpc: Check response of set indicator command X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=820d96bdabe549bd042e67df76bca6e6fc58fb81;p=max%2Ftmk_keyboard.git core: ibmpc: Check response of set indicator command --- diff --git a/tmk_core/protocol/ibmpc.c b/tmk_core/protocol/ibmpc.c index 65e8a267..ed9954c1 100644 --- a/tmk_core/protocol/ibmpc.c +++ b/tmk_core/protocol/ibmpc.c @@ -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); + } }