Fixed bug - epMUL was already defined

This commit is contained in:
Kristian Lauszus 2013-12-05 07:39:28 +01:00
parent d168409b04
commit b100677354
2 changed files with 3 additions and 3 deletions

View file

@ -24,7 +24,7 @@ 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) protocolMode(HID_BOOT_PROTOCOL)
{ {
for (uint8_t i = 0; i < epMUL; i++) for (uint8_t i = 0; i < NUM_PARSERS; i++)
pRptParser[i] = NULL; pRptParser[i] = NULL;
if (pBtd) if (pBtd)

View file

@ -61,7 +61,7 @@
#define KEYBOARD_PARSER_ID 0 #define KEYBOARD_PARSER_ID 0
#define MOUSE_PARSER_ID 1 #define MOUSE_PARSER_ID 1
#define epMUL 2 #define NUM_PARSERS 2
/** This BluetoothService class implements support for the HID keyboard and mice. */ /** This BluetoothService class implements support for the HID keyboard and mice. */
class BTHID : public BluetoothService { class BTHID : public BluetoothService {
@ -124,7 +124,7 @@ public:
private: private:
BTD *pBtd; // Pointer to BTD instance BTD *pBtd; // Pointer to BTD instance
HIDReportParser *pRptParser[epMUL]; HIDReportParser *pRptParser[NUM_PARSERS];
/** Set report protocol. */ /** Set report protocol. */
void setProtocol(); void setProtocol();