Removed some unused code and cleanup

This commit is contained in:
Kristian Lauszus 2013-11-27 00:07:58 +01:00
parent b5d997c821
commit 6004d61de2
2 changed files with 2 additions and 5 deletions

View file

@ -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

View file

@ -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