From b1006773547d0a87e7abbb54be3369a6f763d709 Mon Sep 17 00:00:00 2001 From: Kristian Lauszus Date: Thu, 5 Dec 2013 07:39:28 +0100 Subject: [PATCH] Fixed bug - epMUL was already defined --- BTHID.cpp | 2 +- BTHID.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BTHID.cpp b/BTHID.cpp index 3e626b18..ab1617dc 100644 --- a/BTHID.cpp +++ b/BTHID.cpp @@ -24,7 +24,7 @@ BTHID::BTHID(BTD *p, bool pair, const char *pin) : pBtd(p), // pointer to USB class instance - mandatory protocolMode(HID_BOOT_PROTOCOL) { - for (uint8_t i = 0; i < epMUL; i++) + for (uint8_t i = 0; i < NUM_PARSERS; i++) pRptParser[i] = NULL; if (pBtd) diff --git a/BTHID.h b/BTHID.h index 7eae9494..f7d18b10 100644 --- a/BTHID.h +++ b/BTHID.h @@ -61,7 +61,7 @@ #define KEYBOARD_PARSER_ID 0 #define MOUSE_PARSER_ID 1 -#define epMUL 2 +#define NUM_PARSERS 2 /** This BluetoothService class implements support for the HID keyboard and mice. */ class BTHID : public BluetoothService { @@ -124,7 +124,7 @@ public: private: BTD *pBtd; // Pointer to BTD instance - HIDReportParser *pRptParser[epMUL]; + HIDReportParser *pRptParser[NUM_PARSERS]; /** Set report protocol. */ void setProtocol();