diff options
author | lokher <lokher@gmail.com> | 2022-12-14 15:46:29 +0800 |
---|---|---|
committer | lokher <lokher@gmail.com> | 2022-12-14 15:46:29 +0800 |
commit | 093ea22832cf9ab16715d93e77cc26418a60672f (patch) | |
tree | 28762f40db203622b5cae129d1c72993b0502b54 /keyboards/keychron/bluetooth/ckbt51.c | |
parent | a336c2c5005251e4cb0f3a62ccabdb4cfccad915 (diff) |
Add k2_pro; Change LED_MATRIX_VAL_STEP to 16; Fix incorrect payload len in ckbt51.c
Diffstat (limited to 'keyboards/keychron/bluetooth/ckbt51.c')
-rw-r--r-- | keyboards/keychron/bluetooth/ckbt51.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/keyboards/keychron/bluetooth/ckbt51.c b/keyboards/keychron/bluetooth/ckbt51.c index 7286fe40e1..f60101d8bf 100644 --- a/keyboards/keychron/bluetooth/ckbt51.c +++ b/keyboards/keychron/bluetooth/ckbt51.c @@ -590,7 +590,7 @@ void ckbt51_task(void) { for (int i = 0; i < len - 2; i++) checksum += buf[i]; if ((checksum & 0xff) == buf[len - 2] && ((checksum >> 8) & 0xff) == buf[len - 1]) { - ckbt51_event_handler(buf[0], buf + 1, len - 2, sn); + ckbt51_event_handler(buf[0], buf + 1, len - 3, sn); } else { // TODO: Error handle } |