mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-04-26 10:52:58 +02:00
Possibly not necessary, as it returns 0 if there is no available.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user