fix: BLE refactor mouse keys fix.
This commit is contained in:
parent
483a4930e9
commit
96e55c8be6
2 changed files with 5 additions and 1 deletions
|
@ -22,6 +22,10 @@ include:
|
|||
shield: kyria_left
|
||||
cmake-args: "-DCONFIG_ZMK_DISPLAY=y"
|
||||
nickname: "display"
|
||||
- board: nice_nano_v2
|
||||
shield: kyria_left
|
||||
cmake-args: "-DCONFIG_ZMK_MOUSE=y"
|
||||
nickname: "mouse"
|
||||
- board: sparkfun_pro_micro_rp2040
|
||||
shield: reviung41
|
||||
cmake-args: "-DSNIPPET='zmk-usb-logging'"
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue