]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
core: ibmpc: Check response of set indicator command
authortmk <hasu@tmk-kbd.com>
Fri, 8 May 2020 12:30:41 +0000 (21:30 +0900)
committertmk <hasu@tmk-kbd.com>
Fri, 8 May 2020 12:48:59 +0000 (21:48 +0900)
tmk_core/protocol/ibmpc.c

index 65e8a2676245a52ec261f261565ec5384420111b..ed9954c119eae67c1c50910d765f39397c0c05ca 100644 (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);
+    }
 }