Fix warning about possible string truncation in the TempDataLogger project.
[pub/USBasp.git] / Demos / Device / ClassDriver / DualVirtualSerial / DualVirtualSerial.c
index b7e8fd7..b0655bb 100644 (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
        }
 }