aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Device/ClassDriver/DualVirtualSerial
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2018-06-17 16:06:07 +1000
committerDean Camera <dean@fourwalledcubicle.com>2018-06-17 16:06:07 +1000
commita08a02481ba9e68933ad0b89483f5328767df9f3 (patch)
tree8a14646a4ff57c877bd4d83416b9b65cd9b10149 /Demos/Device/ClassDriver/DualVirtualSerial
parentd8e0d67caefa312970787645180ec5db2eff92cb (diff)
downloadlufa-a08a02481ba9e68933ad0b89483f5328767df9f3.tar.gz
lufa-a08a02481ba9e68933ad0b89483f5328767df9f3.tar.bz2
lufa-a08a02481ba9e68933ad0b89483f5328767df9f3.zip
Fix mismatched aliased event and event stub function prototypes.
Diffstat (limited to 'Demos/Device/ClassDriver/DualVirtualSerial')
-rw-r--r--Demos/Device/ClassDriver/DualVirtualSerial/DualVirtualSerial.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Demos/Device/ClassDriver/DualVirtualSerial/DualVirtualSerial.c b/Demos/Device/ClassDriver/DualVirtualSerial/DualVirtualSerial.c
index b7e8fd7b8..b0655bb14 100644
--- a/Demos/Device/ClassDriver/DualVirtualSerial/DualVirtualSerial.c
+++ b/Demos/Device/ClassDriver/DualVirtualSerial/DualVirtualSerial.c
@@ -231,12 +231,14 @@ void EVENT_CDC_Device_ControLineStateChanged(USB_ClassInfo_CDC_Device_t *const C
*/
bool HostReady = (CDCInterfaceInfo->State.ControlLineStates.HostToDevice & CDC_CONTROL_LINE_OUT_DTR) != 0;
+ (void)HostReady;
+
if (CDCInterfaceInfo == &VirtualSerial1_CDC_Interface)
{
- // CDC interface 1's host is ready to send/receive data
+ // CDC interface 1's host is ready to send/receive data if HostReady is true
}
else
{
- // CDC interface 2's host is ready to send/receive data
+ // CDC interface 2's host is ready to send/receive data if HostReady is true
}
}