From 4aa78a6f8d2742e1407f78c50a0cf93e194447a4 Mon Sep 17 00:00:00 2001 From: Pete Johanson Date: Thu, 3 Dec 2020 00:12:21 -0500 Subject: fix(split): Use queue/work for peripheral events. * Avoid corruption by using work to process peripheral key position events on the main work thread, like local kscan events are. * Fixes #221 --- app/Kconfig | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'app/Kconfig') diff --git a/app/Kconfig b/app/Kconfig index 0aa291d..65abf7a 100644 --- a/app/Kconfig +++ b/app/Kconfig @@ -94,11 +94,19 @@ config ZMK_SPLIT_BLE if ZMK_SPLIT_BLE -config ZMK_SPLIT_BLE_ROLE_CENTRAL +menuconfig ZMK_SPLIT_BLE_ROLE_CENTRAL bool "Central" select BT_CENTRAL select BT_GATT_CLIENT +if ZMK_SPLIT_BLE_ROLE_CENTRAL + +config ZMK_SPLIT_BLE_CENTRAL_POSITION_QUEUE_SIZE + int "Max number of key position state events to queue when received from peripherals" + default 5 + +endif + if !ZMK_SPLIT_BLE_ROLE_CENTRAL config ZMK_USB -- cgit v1.2.3