diff options
| author | Jeremiah McCarthy <[email protected]> | 2021-04-22 16:47:05 -0400 |
|---|---|---|
| committer | Jeremiah McCarthy <[email protected]> | 2021-04-22 16:47:05 -0400 |
| commit | cc440ade81a72df3a605e0abc427a284b8bbc424 (patch) | |
| tree | fe900d3417343f59c656d9bc08af2e05217f225d | |
| parent | 45e401e69df87353f528d0e3ce313d5af5a4f90c (diff) | |
Remove custom status description table
| -rw-r--r-- | src/class/dfu/dfu_device.c | 2 | ||||
| -rw-r--r-- | src/class/dfu/dfu_device.h | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/src/class/dfu/dfu_device.c b/src/class/dfu/dfu_device.c index ed7d381f0..f0a90073b 100644 --- a/src/class/dfu/dfu_device.c +++ b/src/class/dfu/dfu_device.c @@ -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)); } diff --git a/src/class/dfu/dfu_device.h b/src/class/dfu/dfu_device.h index 322cc6496..d19115555 100644 --- a/src/class/dfu/dfu_device.h +++ b/src/class/dfu/dfu_device.h @@ -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 //--------------------------------------------------------------------+ |
