BLE Security/Pairing fixes for "Just Works" SC.

This commit is contained in:
Pete Johanson
2020-05-15 11:39:16 -04:00
parent 73bea6218e
commit b135eb65f5
4 changed files with 24 additions and 11 deletions

View File

@@ -28,6 +28,8 @@ int zmk_endpoints_init()
int zmk_endpoints_send_key_event(struct zmk_key_event key_event)
{
struct zmk_hid_report *report;
int err;
if (key_event.pressed)
{
zmk_hid_press_key(key_event.key);
@@ -44,8 +46,10 @@ int zmk_endpoints_send_key_event(struct zmk_key_event key_event)
// // LOG_DBG("USB Send Failed");
// }
if (zmk_hog_send_report(report) != 0)
err = zmk_hog_send_report(report);
if (err)
{
printk("FAILED TO SEND OVER HOG: %d\n", err);
// LOG_DBG("HID Over GATTP Send Failed");
}