mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
Remove custom status description table
This commit is contained in:
parent
45e401e69d
commit
cc440ade81
@ -292,7 +292,7 @@ static void dfu_req_getstatus_reply(uint8_t rhport, tusb_control_request_t const
|
||||
memset((uint8_t *)&resp.bwPollTimeout, 0x00, 3);
|
||||
}
|
||||
resp.bState = _dfu_state_ctx.state;
|
||||
resp.iString = ( tud_dfu_get_status_desc_table_index_cb ) ? tud_dfu_get_status_desc_table_index_cb() : 0;
|
||||
resp.iString = 0;
|
||||
|
||||
tud_control_xfer(rhport, request, &resp, sizeof(dfu_status_req_payload_t));
|
||||
}
|
||||
|
@ -90,9 +90,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 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);
|
||||
//--------------------------------------------------------------------+
|
||||
// Internal Class Driver API
|
||||
//--------------------------------------------------------------------+
|
||||
|
Loading…
x
Reference in New Issue
Block a user