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();