Przeglądaj źródła

Remove custom status description table

Jeremiah McCarthy 4 lat temu
rodzic
commit
cc440ade81
2 zmienionych plików z 1 dodań i 4 usunięć
  1. 1 1
      src/class/dfu/dfu_device.c
  2. 0 3
      src/class/dfu/dfu_device.h

+ 1 - 1
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);
     memset((uint8_t *)&resp.bwPollTimeout, 0x00, 3);
   }
   }
   resp.bState = _dfu_state_ctx.state;
   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));
   tud_control_xfer(rhport, request, &resp, sizeof(dfu_status_req_payload_t));
 }
 }

+ 0 - 3
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
 // 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);
 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
 // Internal Class Driver API
 //--------------------------------------------------------------------+
 //--------------------------------------------------------------------+