mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Fixed bug - epMUL was already defined
This commit is contained in:
parent
d168409b04
commit
b100677354
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||||
|
|
4
BTHID.h
4
BTHID.h
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue