diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-09-21 10:49:06 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-09-21 10:49:06 +0000 |
commit | 3ffa7543a05761a0c69144c9b66196b08d8f1249 (patch) | |
tree | 194ed0ef1c4c2f82b84100a8eb95128fce4014af /Demos/Host/ClassDriver/KeyboardHost | |
parent | f5c645296c837c85ff915a615cf1fd3193b91d7d (diff) | |
download | lufa-3ffa7543a05761a0c69144c9b66196b08d8f1249.tar.gz lufa-3ffa7543a05761a0c69144c9b66196b08d8f1249.tar.bz2 lufa-3ffa7543a05761a0c69144c9b66196b08d8f1249.zip |
Finish initial draft of the Host Mode HID Class driver.
Add new MouseHostWithParser and KeyboardHostWithParser Host Class driver demos.
Diffstat (limited to 'Demos/Host/ClassDriver/KeyboardHost')
-rw-r--r-- | Demos/Host/ClassDriver/KeyboardHost/KeyboardHost.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Demos/Host/ClassDriver/KeyboardHost/KeyboardHost.c b/Demos/Host/ClassDriver/KeyboardHost/KeyboardHost.c index effd16b01..45cf5e5aa 100644 --- a/Demos/Host/ClassDriver/KeyboardHost/KeyboardHost.c +++ b/Demos/Host/ClassDriver/KeyboardHost/KeyboardHost.c @@ -113,10 +113,8 @@ int main(void) case HOST_STATE_Configured:
if (HID_Host_IsReportReceived(&Keyboard_HID_Interface))
{
- USB_KeyboardReport_Data_t KeyboardReport;
- uint8_t ReportID = 0;
-
- HID_Host_ReceiveReport(&Keyboard_HID_Interface, false, &ReportID, &KeyboardReport);
+ USB_KeyboardReport_Data_t KeyboardReport;
+ HID_Host_ReceiveReport(&Keyboard_HID_Interface, &KeyboardReport);
LEDs_ChangeLEDs(LEDS_LED1, (KeyboardReport.Modifier) ? LEDS_LED1 : 0);
|