summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--keyboards/keychron/bluetooth/ckbt51.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/keyboards/keychron/bluetooth/ckbt51.c b/keyboards/keychron/bluetooth/ckbt51.c
index 4653825839..13833ad196 100644
--- a/keyboards/keychron/bluetooth/ckbt51.c
+++ b/keyboards/keychron/bluetooth/ckbt51.c
@@ -212,11 +212,14 @@ void ckbt51_send_consumer(uint16_t report) {
}
void ckbt51_send_system(uint16_t report) {
+ /* CKBT51 supports only System Sleep */
+ if ((report & 0xFF) != 0x82) return;
+
uint8_t i = 0;
memset(payload, 0, PACKET_MAX_LEN);
payload[i++] = CKBT51_CMD_SEND_SYSTEM;
- payload[i++] = report & 0xFF;
+ payload[i++] = 0x01 << ((report & 0xFF) - 0x82);
ckbt51_send_cmd(payload, i, true, false);
}