From 0735774a4666b73ff7c723b99582d0bfe0010f79 Mon Sep 17 00:00:00 2001 From: Kristian Lauszus Date: Mon, 25 Nov 2013 00:32:06 +0100 Subject: [PATCH] Forgot to init protocolMode --- BTHID.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BTHID.cpp b/BTHID.cpp index d6fbb43c..de7b485d 100644 --- a/BTHID.cpp +++ b/BTHID.cpp @@ -21,7 +21,8 @@ //#define PRINTREPORT // Uncomment to print the report send by the HID device BTHID::BTHID(BTD *p, bool pair, const char *pin) : -pBtd(p) // pointer to USB class instance - mandatory +pBtd(p), // pointer to USB class instance - mandatory +protocolMode(HID_BOOT_PROTOCOL) { for(uint8_t i = 0; i < epMUL; i++) pRptParser[i] = NULL;