1
0
Fork 0

Fix mismatched aliased event and event stub function prototypes.

This commit is contained in:
Dean Camera 2018-06-17 16:06:07 +10:00 committed by skullydazed
parent c7e1b53913
commit df8e417032
14 changed files with 38 additions and 13 deletions

View file

@ -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
}
}