aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Device/LowLevel/DualVirtualSerial/DualVirtualSerial.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-08-24 13:16:16 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-08-24 13:16:16 +0000
commitb7b8a9edfacb000c138eb6e7ad77c515c3a82050 (patch)
tree4b5afe16c3d22fdf3e2b5a7fe175ba5062404c12 /Demos/Device/LowLevel/DualVirtualSerial/DualVirtualSerial.c
parent092f82e06fc64436fd957b4b6b8d5ce33532efae (diff)
downloadlufa-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 'Demos/Device/LowLevel/DualVirtualSerial/DualVirtualSerial.c')
-rw-r--r--Demos/Device/LowLevel/DualVirtualSerial/DualVirtualSerial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Demos/Device/LowLevel/DualVirtualSerial/DualVirtualSerial.c b/Demos/Device/LowLevel/DualVirtualSerial/DualVirtualSerial.c
index c9a2d9248..11f6cda0d 100644
--- a/Demos/Device/LowLevel/DualVirtualSerial/DualVirtualSerial.c
+++ b/Demos/Device/LowLevel/DualVirtualSerial/DualVirtualSerial.c
@@ -153,7 +153,7 @@ void EVENT_USB_Device_ConfigurationChanged(void)
void EVENT_USB_Device_UnhandledControlRequest(void)
{
/* Determine which interface's Line Coding data is being set from the wIndex parameter */
- uint8_t* LineEncodingData = (USB_ControlRequest.wIndex == 0) ? (uint8_t*)&LineEncoding1 : (uint8_t*)&LineEncoding2;
+ void* LineEncodingData = (USB_ControlRequest.wIndex == 0) ? &LineEncoding1 : &LineEncoding2;
/* Process CDC specific control requests */
switch (USB_ControlRequest.bRequest)