fix: BLE refactor mouse keys fix.

This commit is contained in:
Peter Johanson 2024-06-28 17:40:49 -06:00 committed by Pete Johanson
parent 483a4930e9
commit 96e55c8be6
2 changed files with 5 additions and 1 deletions

View file

@ -22,6 +22,10 @@ include:
shield: kyria_left shield: kyria_left
cmake-args: "-DCONFIG_ZMK_DISPLAY=y" cmake-args: "-DCONFIG_ZMK_DISPLAY=y"
nickname: "display" nickname: "display"
- board: nice_nano_v2
shield: kyria_left
cmake-args: "-DCONFIG_ZMK_MOUSE=y"
nickname: "mouse"
- board: sparkfun_pro_micro_rp2040 - board: sparkfun_pro_micro_rp2040
shield: reviung41 shield: reviung41
cmake-args: "-DSNIPPET='zmk-usb-logging'" cmake-args: "-DSNIPPET='zmk-usb-logging'"

View file

@ -336,7 +336,7 @@ K_MSGQ_DEFINE(zmk_hog_mouse_msgq, sizeof(struct zmk_hid_mouse_report_body),
void send_mouse_report_callback(struct k_work *work) { void send_mouse_report_callback(struct k_work *work) {
struct zmk_hid_mouse_report_body report; struct zmk_hid_mouse_report_body report;
while (k_msgq_get(&zmk_hog_mouse_msgq, &report, K_NO_WAIT) == 0) { while (k_msgq_get(&zmk_hog_mouse_msgq, &report, K_NO_WAIT) == 0) {
struct bt_conn *conn = destination_connection(); struct bt_conn *conn = zmk_ble_active_profile_conn();
if (conn == NULL) { if (conn == NULL) {
return; return;
} }