diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-08-24 13:16:16 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-08-24 13:16:16 +0000 |
commit | b7b8a9edfacb000c138eb6e7ad77c515c3a82050 (patch) | |
tree | 4b5afe16c3d22fdf3e2b5a7fe175ba5062404c12 /LUFA/Drivers/USB/Class/Host/Printer.c | |
parent | 092f82e06fc64436fd957b4b6b8d5ce33532efae (diff) | |
download | lufa-b7b8a9edfacb000c138eb6e7ad77c515c3a82050.tar.gz lufa-b7b8a9edfacb000c138eb6e7ad77c515c3a82050.tar.bz2 lufa-b7b8a9edfacb000c138eb6e7ad77c515c3a82050.zip |
Fixed LowLevel PrinterHost demo not sending control requests to the attached printer with the correct printer interface wIndex value.
Diffstat (limited to 'LUFA/Drivers/USB/Class/Host/Printer.c')
-rw-r--r-- | LUFA/Drivers/USB/Class/Host/Printer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/LUFA/Drivers/USB/Class/Host/Printer.c b/LUFA/Drivers/USB/Class/Host/Printer.c index 31ba6c61b..6c55f6aa1 100644 --- a/LUFA/Drivers/USB/Class/Host/Printer.c +++ b/LUFA/Drivers/USB/Class/Host/Printer.c @@ -171,10 +171,10 @@ uint8_t PRNT_Host_SoftReset(USB_ClassInfo_PRNT_Host_t* const PRNTInterfaceInfo) USB_ControlRequest = (USB_Request_Header_t) { .bmRequestType = (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_INTERFACE), - .bRequest = REQ_SoftReset, - .wValue = 0, - .wIndex = PRNTInterfaceInfo->State.InterfaceNumber, - .wLength = 0, + .bRequest = REQ_SoftReset, + .wValue = 0, + .wIndex = PRNTInterfaceInfo->State.InterfaceNumber, + .wLength = 0, }; Pipe_SelectPipe(PIPE_CONTROLPIPE); |