Skip to content

Commit 88789cd

Browse files
authored
Fix build error when compiling with verbose logging (espressif#5747)
When compiling with verbose logging, the build would error with a message saying `len` is not defined in `tud_vendor_rx_cb()`. This change fixes the error.
1 parent 5b20710 commit 88789cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/USB/src/USBVendor.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ uint16_t tusb_vendor_load_descriptor(uint8_t * dst, uint8_t * itf)
4040
}
4141

4242
void tud_vendor_rx_cb(uint8_t itf){
43-
log_v("%u", len);
4443
size_t len = tud_vendor_n_available(itf);
44+
log_v("%u", len);
4545
if(len){
4646
uint8_t buffer[len];
4747
len = tud_vendor_n_read(itf, buffer, len);

0 commit comments

Comments
 (0)