Leonardo Compatibility patch by weizenspreu

This commit is contained in:
Oleg Mazurov 2013-04-30 14:06:36 -06:00
parent 2d3b73f9a7
commit 554487c849
2 changed files with 4 additions and 4 deletions

View file

@ -68,7 +68,7 @@ void KbdRptParser::OnKeyPressed(uint8_t key)
USB Usb; USB Usb;
//USBHub Hub(&Usb); //USBHub Hub(&Usb);
HIDBoot<HID_PROTOCOL_KEYBOARD> Keyboard(&Usb); HIDBoot<HID_PROTOCOL_KEYBOARD> HidKeyboard(&Usb);
uint32_t next_time; uint32_t next_time;
@ -86,7 +86,7 @@ void setup()
next_time = millis() + 5000; next_time = millis() + 5000;
Keyboard.SetReportParser(0, (HIDReportParser*)&Prs); HidKeyboard.SetReportParser(0, (HIDReportParser*)&Prs);
} }
void loop() void loop()

View file

@ -58,7 +58,7 @@ void MouseRptParser::OnMiddleButtonDown (MOUSEINFO *mi)
USB Usb; USB Usb;
USBHub Hub(&Usb); USBHub Hub(&Usb);
HIDBoot<HID_PROTOCOL_MOUSE> Mouse(&Usb); HIDBoot<HID_PROTOCOL_MOUSE> HidMouse(&Usb);
uint32_t next_time; uint32_t next_time;
@ -76,7 +76,7 @@ void setup()
next_time = millis() + 5000; next_time = millis() + 5000;
Mouse.SetReportParser(0,(HIDReportParser*)&Prs); HidMouse.SetReportParser(0,(HIDReportParser*)&Prs);
} }
void loop() void loop()