We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ec5f4e commit 083db16Copy full SHA for 083db16
cores/esp32/HWCDC.cpp
@@ -28,7 +28,7 @@ ESP_EVENT_DEFINE_BASE(ARDUINO_HW_CDC_EVENTS);
28
29
static RingbufHandle_t tx_ring_buf = NULL;
30
static xQueueHandle rx_queue = NULL;
31
-static uint8_t rx_data_buf[64];
+static uint8_t rx_data_buf[64] = {0};
32
static intr_handle_t intr_handle = NULL;
33
static volatile bool initial_empty = false;
34
static xSemaphoreHandle tx_lock = NULL;
@@ -195,6 +195,7 @@ void HWCDC::end()
195
intr_handle = NULL;
196
if(tx_lock != NULL) {
197
vSemaphoreDelete(tx_lock);
198
+ tx_lock = NULL;
199
}
200
setRxBufferSize(0);
201
setTxBufferSize(0);
0 commit comments