mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-31 05:52:55 +08:00
Remove nonstd behaviour
This commit is contained in:
parent
88dea7a0a8
commit
0936a76dc9
@ -269,7 +269,7 @@ bool dfu_moded_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb_control_reque
|
||||
default:
|
||||
{
|
||||
TU_LOG2(" DFU Nonstandard Request: %u\r\n", request->bRequest);
|
||||
return ( tud_dfu_req_nonstandard_cb ) ? tud_dfu_req_nonstandard_cb(rhport, stage, request) : false;
|
||||
return false; // stall unsupported request
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
@ -107,11 +107,6 @@ TU_ATTR_WEAK void tud_dfu_abort_cb(void);
|
||||
// Return the number of bytes to write
|
||||
uint16_t tud_dfu_req_upload_data_cb(uint16_t block_num, uint8_t* data, uint16_t length);
|
||||
|
||||
// Invoked when a nonstandard request is received
|
||||
// Use may be vendor specific.
|
||||
// Return false to stall
|
||||
TU_ATTR_WEAK bool tud_dfu_req_nonstandard_cb(uint8_t rhport, uint8_t stage, tusb_control_request_t const * request);
|
||||
|
||||
// Invoked during a DFU_GETSTATUS request to get for the string index
|
||||
// to the status description string table.
|
||||
TU_ATTR_WEAK uint8_t tud_dfu_get_status_desc_table_index_cb(void);
|
||||
|
Loading…
x
Reference in New Issue
Block a user