Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 88789cd

Browse filesBrowse 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
Copy full SHA for 88789cd

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎libraries/USB/src/USBVendor.cpp

Copy file name to clipboardExpand all lines: libraries/USB/src/USBVendor.cpp
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.