Skip to content

Commit

Permalink
make webusb tud_vendor_control_xfer_cb() weak by default to be overwr…
Browse files Browse the repository at this point in the history
…itable for user sketch
  • Loading branch information
hathach committed Aug 8, 2024
1 parent e92d597 commit 4c6e9ce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/arduino/webusb/Adafruit_USBD_WebUSB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,9 @@ uint8_t const *tud_descriptor_bos_cb(void) { return desc_bos; }
// Driver response accordingly to the request and the transfer stage
// (setup/data/ack) return false to stall control endpoint (e.g unsupported
// request)
bool tud_vendor_control_xfer_cb(uint8_t rhport, uint8_t stage,
tusb_control_request_t const *request) {
TU_ATTR_WEAK bool
tud_vendor_control_xfer_cb(uint8_t rhport, uint8_t stage,
tusb_control_request_t const *request) {
if (!_webusb_dev) {
return false;
}
Expand Down

0 comments on commit 4c6e9ce

Please sign in to comment.