Skip to content

Commit 034713e

Browse files
authored
fix (HWCDC): removes left over
Removes a left over function from previous 3.0.0 code. - just removing unused code.
1 parent 7e47b7c commit 034713e

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

Diff for: cores/esp32/HWCDC.cpp

-16
Original file line numberDiff line numberDiff line change
@@ -401,22 +401,6 @@ int HWCDC::availableForWrite(void) {
401401
return a;
402402
}
403403

404-
static void flushTXBuffer() {
405-
if (!tx_ring_buf) {
406-
return;
407-
}
408-
UBaseType_t uxItemsWaiting = 0;
409-
vRingbufferGetInfo(tx_ring_buf, NULL, NULL, NULL, NULL, &uxItemsWaiting);
410-
411-
size_t queued_size = 0;
412-
uint8_t *queued_buff = (uint8_t *)xRingbufferReceiveUpTo(tx_ring_buf, &queued_size, 0, uxItemsWaiting);
413-
if (queued_size && queued_buff != NULL) {
414-
vRingbufferReturnItem(tx_ring_buf, (void *)queued_buff);
415-
}
416-
// flushes CDC FIFO
417-
usb_serial_jtag_ll_txfifo_flush();
418-
}
419-
420404
size_t HWCDC::write(const uint8_t *buffer, size_t size) {
421405
if (buffer == NULL || size == 0 || tx_ring_buf == NULL || tx_lock == NULL) {
422406
return 0;

0 commit comments

Comments
 (0)