diff --git a/BTHID.cpp b/BTHID.cpp index 02b9a884..908f5961 100644 --- a/BTHID.cpp +++ b/BTHID.cpp @@ -204,6 +204,7 @@ void BTHID::ACLData(uint8_t* l2capinbuf) { pRptParser[MOUSE_PARSER_ID]->Parse(reinterpret_cast (this), 0, (uint8_t) length, &l2capinbuf[10]); // Use reinterpret_cast again to extract the instance } break; + case 0x03: #ifdef DEBUG_USB_HOST Notify(PSTR("\r\nChange mode event: "), 0x80); @@ -238,7 +239,7 @@ void BTHID::ACLData(uint8_t* l2capinbuf) { Notify(PSTR("\r\n"), 0x80); for (uint16_t i = 0; i < ((uint16_t)l2capinbuf[5] << 8 | l2capinbuf[4]); i++) { D_PrintHex (l2capinbuf[i + 8], 0x80); - Notifyc(' ', 0x80); + Notify(PSTR(" "), 0x80); } } #endif diff --git a/BTHID.h b/BTHID.h index ddd26d59..7eae9494 100644 --- a/BTHID.h +++ b/BTHID.h @@ -19,7 +19,6 @@ #define _bthid_h_ #include "BTD.h" -#include "controllerEnums.h" #include "hidboot.h" /* Bluetooth L2CAP states for L2CAP_task() */ @@ -152,9 +151,6 @@ private: uint8_t l2cap_state; uint8_t l2cap_event_flag; // l2cap flags of received Bluetooth events - uint8_t ButtonState, OldButtonState, ButtonClickState; - int16_t xAxis, yAxis, scroll; - /* L2CAP Channels */ uint8_t control_scid[2]; // L2CAP source CID for HID_Control uint8_t control_dcid[2]; // 0x0070