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()
|
static int8_t CdcDeInit()
|
||||||
{
|
{
|
||||||
USBD_Interface_fops_FS.Init = nullptr;
|
m_txBuffer.size = 0;
|
||||||
USBD_Interface_fops_FS.DeInit = nullptr;
|
m_usbAsyncTxBuffer.size = 0;
|
||||||
USBD_Interface_fops_FS.Control = nullptr;
|
m_rxBuffer.head = 0;
|
||||||
USBD_Interface_fops_FS.Receive = nullptr;
|
m_rxBuffer.tail = 0;
|
||||||
|
m_usbAsyncRxBuffer.size = 0;
|
||||||
|
m_receiving = false;
|
||||||
|
m_reading = false;
|
||||||
return USBD_OK;
|
return USBD_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user