From 820d96bdabe549bd042e67df76bca6e6fc58fb81 Mon Sep 17 00:00:00 2001 From: tmk Date: Fri, 8 May 2020 21:30:41 +0900 Subject: [PATCH] core: ibmpc: Check response of set indicator command --- tmk_core/protocol/ibmpc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); + } } -- 2.46.2