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

@@ -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) {
struct zmk_hid_mouse_report_body report;
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) {
return;
}