Skip to content

Commit

Permalink
change(test_vendor): Made with v0.17 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
roma-jam committed Nov 28, 2024
1 parent a3e685c commit 8646b56
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions device/esp_tinyusb/test_apps/vendor/main/test_vendor.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@
static const char *TAG = "vendor_test";

char buffer_in[64];
#if (TUSB_VERSION_MINOR >= 17)
void tud_vendor_rx_cb(uint8_t itf, uint8_t const *buffer, uint16_t bufsize)
#else
void tud_vendor_rx_cb(uint8_t itf)
#endif // TUSB_VERSION_MINOR
{
ESP_LOGI(TAG, "tud_vendor_rx_cb(itf=%d)", itf);
int available = tud_vendor_n_available(itf);
Expand Down

0 comments on commit 8646b56

Please sign in to comment.