From 554487c8491bf82c4840677dd44767b390c708ea Mon Sep 17 00:00:00 2001 From: Oleg Mazurov Date: Tue, 30 Apr 2013 14:06:36 -0600 Subject: [PATCH] Leonardo Compatibility patch by weizenspreu --- examples/HID/USBHIDBootKbd/USBHIDBootKbd.ino | 4 ++-- examples/HID/USBHIDBootMouse/USBHIDBootMouse.pde | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/HID/USBHIDBootKbd/USBHIDBootKbd.ino b/examples/HID/USBHIDBootKbd/USBHIDBootKbd.ino index 71e7430a..8421f6ee 100644 --- a/examples/HID/USBHIDBootKbd/USBHIDBootKbd.ino +++ b/examples/HID/USBHIDBootKbd/USBHIDBootKbd.ino @@ -68,7 +68,7 @@ void KbdRptParser::OnKeyPressed(uint8_t key) USB Usb; //USBHub Hub(&Usb); -HIDBoot Keyboard(&Usb); +HIDBoot HidKeyboard(&Usb); uint32_t next_time; @@ -86,7 +86,7 @@ void setup() next_time = millis() + 5000; - Keyboard.SetReportParser(0, (HIDReportParser*)&Prs); + HidKeyboard.SetReportParser(0, (HIDReportParser*)&Prs); } void loop() diff --git a/examples/HID/USBHIDBootMouse/USBHIDBootMouse.pde b/examples/HID/USBHIDBootMouse/USBHIDBootMouse.pde index eb3500f4..2227a29b 100644 --- a/examples/HID/USBHIDBootMouse/USBHIDBootMouse.pde +++ b/examples/HID/USBHIDBootMouse/USBHIDBootMouse.pde @@ -58,7 +58,7 @@ void MouseRptParser::OnMiddleButtonDown (MOUSEINFO *mi) USB Usb; USBHub Hub(&Usb); -HIDBoot Mouse(&Usb); +HIDBoot HidMouse(&Usb); uint32_t next_time; @@ -76,7 +76,7 @@ void setup() next_time = millis() + 5000; - Mouse.SetReportParser(0,(HIDReportParser*)&Prs); + HidMouse.SetReportParser(0,(HIDReportParser*)&Prs); } void loop()