diff options
| author | hathach <[email protected]> | 2021-07-14 15:31:20 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2021-07-14 15:31:20 +0700 |
| commit | 27676f738d54c1edf87449531b3a1fd24fca59d3 (patch) | |
| tree | 60d2683f6cea71a49d46d8ed112295eefa1ad4a9 /src | |
| parent | 57d9f696a2c11cf0004ea2eec1204d80c657cb03 (diff) | |
rename tud_dfu_reboot_cb() to tud_dfu_detach_cb()
Diffstat (limited to 'src')
| -rw-r--r-- | src/class/dfu/dfu_device.c | 2 | ||||
| -rw-r--r-- | src/class/dfu/dfu_device.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/class/dfu/dfu_device.c b/src/class/dfu/dfu_device.c index dcdc34977..c807004ec 100644 --- a/src/class/dfu/dfu_device.c +++ b/src/class/dfu/dfu_device.c @@ -241,7 +241,7 @@ bool dfu_moded_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb_control_reque case DFU_REQUEST_DETACH: { tud_control_status(rhport, request); - if (tud_dfu_reboot_cb) tud_dfu_reboot_cb(); + if (tud_dfu_detach_cb) tud_dfu_detach_cb(); break; } diff --git a/src/class/dfu/dfu_device.h b/src/class/dfu/dfu_device.h index 2a1f5a8e7..d5d464f3b 100644 --- a/src/class/dfu/dfu_device.h +++ b/src/class/dfu/dfu_device.h @@ -82,7 +82,8 @@ TU_ATTR_WEAK void tud_dfu_abort_cb(uint8_t alt); TU_ATTR_WEAK uint16_t tud_dfu_upload_cb(uint8_t alt, uint16_t block_num, uint8_t* data, uint16_t length); // Invoked when a DFU_DETACH request is received -TU_ATTR_WEAK void tud_dfu_reboot_cb(void); +TU_ATTR_WEAK void tud_dfu_detach_cb(void); + //--------------------------------------------------------------------+ // Internal Class Driver API //--------------------------------------------------------------------+ |
