From b70a7474f2c08e8d35bd8479d77ece15acbb6232 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Sun, 25 Sep 2022 23:35:35 +0200 Subject: [PATCH] Possibly not necessary, as it returns 0 if there is no available. Signed-off-by: Pol Henarejos --- src/usb/usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usb/usb.c b/src/usb/usb.c index 7b38271..058e6af 100644 --- a/src/usb/usb.c +++ b/src/usb/usb.c @@ -71,7 +71,7 @@ size_t usb_rx(const uint8_t *buffer, size_t len) { uint32_t usb_write_flush() { int w = 0; - if (w_len > 0 && tud_vendor_write_available() > 0) { + if (w_len > 0) { w = driver_write(tx_buffer+tx_r_offset, MIN(w_len, 64)); tx_r_offset += w; w_len -= w;