diff options
Diffstat (limited to 'lib/lufa/Demos/Device/ClassDriver/DualVirtualSerial')
| -rw-r--r-- | lib/lufa/Demos/Device/ClassDriver/DualVirtualSerial/DualVirtualSerial.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/lufa/Demos/Device/ClassDriver/DualVirtualSerial/DualVirtualSerial.c b/lib/lufa/Demos/Device/ClassDriver/DualVirtualSerial/DualVirtualSerial.c index 9a7ff4725..0210ff55c 100644 --- a/lib/lufa/Demos/Device/ClassDriver/DualVirtualSerial/DualVirtualSerial.c +++ b/lib/lufa/Demos/Device/ClassDriver/DualVirtualSerial/DualVirtualSerial.c | |||
| @@ -231,12 +231,14 @@ void EVENT_CDC_Device_ControLineStateChanged(USB_ClassInfo_CDC_Device_t *const C | |||
| 231 | */ | 231 | */ |
| 232 | bool HostReady = (CDCInterfaceInfo->State.ControlLineStates.HostToDevice & CDC_CONTROL_LINE_OUT_DTR) != 0; | 232 | bool HostReady = (CDCInterfaceInfo->State.ControlLineStates.HostToDevice & CDC_CONTROL_LINE_OUT_DTR) != 0; |
| 233 | 233 | ||
| 234 | (void)HostReady; | ||
| 235 | |||
| 234 | if (CDCInterfaceInfo == &VirtualSerial1_CDC_Interface) | 236 | if (CDCInterfaceInfo == &VirtualSerial1_CDC_Interface) |
| 235 | { | 237 | { |
| 236 | // CDC interface 1's host is ready to send/receive data | 238 | // CDC interface 1's host is ready to send/receive data if HostReady is true |
| 237 | } | 239 | } |
| 238 | else | 240 | else |
| 239 | { | 241 | { |
| 240 | // CDC interface 2's host is ready to send/receive data | 242 | // CDC interface 2's host is ready to send/receive data if HostReady is true |
| 241 | } | 243 | } |
| 242 | } | 244 | } |
