Fix deleting of callbacks on de-init
This commit is contained in:
parent
7363926f64
commit
3109678551
@ -111,10 +111,13 @@ class VirtualComPort {
|
||||
|
||||
static int8_t CdcDeInit()
|
||||
{
|
||||
USBD_Interface_fops_FS.Init = nullptr;
|
||||
USBD_Interface_fops_FS.DeInit = nullptr;
|
||||
USBD_Interface_fops_FS.Control = nullptr;
|
||||
USBD_Interface_fops_FS.Receive = nullptr;
|
||||
m_txBuffer.size = 0;
|
||||
m_usbAsyncTxBuffer.size = 0;
|
||||
m_rxBuffer.head = 0;
|
||||
m_rxBuffer.tail = 0;
|
||||
m_usbAsyncRxBuffer.size = 0;
|
||||
m_receiving = false;
|
||||
m_reading = false;
|
||||
return USBD_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user