mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Removed some unused code and cleanup
This commit is contained in:
parent
b5d997c821
commit
6004d61de2
2 changed files with 2 additions and 5 deletions
|
@ -204,6 +204,7 @@ void BTHID::ACLData(uint8_t* l2capinbuf) {
|
|||
pRptParser[MOUSE_PARSER_ID]->Parse(reinterpret_cast<HID *> (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<uint8_t > (l2capinbuf[i + 8], 0x80);
|
||||
Notifyc(' ', 0x80);
|
||||
Notify(PSTR(" "), 0x80);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
4
BTHID.h
4
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
|
||||
|
|
Loading…
Reference in a new issue