Set pin even if it should not pair to a device

Needed by some Bluetooth mice that always want authentication
This commit is contained in:
Kristian Lauszus 2013-12-13 10:41:59 +01:00
parent 184770489f
commit 471a8d9163

View file

@ -31,9 +31,7 @@ protocolMode(HID_BOOT_PROTOCOL)
pBtd->registerServiceClass(this); // Register it as a Bluetooth service pBtd->registerServiceClass(this); // Register it as a Bluetooth service
pBtd->pairWithHIDDevice = pair; pBtd->pairWithHIDDevice = pair;
pBtd->btdPin= pin;
if (pair)
pBtd->btdPin= pin;
/* Set device cid for the control and intterrupt channelse - LSB */ /* Set device cid for the control and intterrupt channelse - LSB */
control_dcid[0] = 0x70; // 0x0070 control_dcid[0] = 0x70; // 0x0070