From 471a8d9163590a7fdb1e6106b49b909e6c6d9223 Mon Sep 17 00:00:00 2001 From: Kristian Lauszus Date: Fri, 13 Dec 2013 10:41:59 +0100 Subject: [PATCH] Set pin even if it should not pair to a device Needed by some Bluetooth mice that always want authentication --- BTHID.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/BTHID.cpp b/BTHID.cpp index 5f4c2e57..17b5ea63 100644 --- a/BTHID.cpp +++ b/BTHID.cpp @@ -31,9 +31,7 @@ protocolMode(HID_BOOT_PROTOCOL) pBtd->registerServiceClass(this); // Register it as a Bluetooth service pBtd->pairWithHIDDevice = pair; - - if (pair) - pBtd->btdPin= pin; + pBtd->btdPin= pin; /* Set device cid for the control and intterrupt channelse - LSB */ control_dcid[0] = 0x70; // 0x0070