mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-25 01:43:47 +00:00
rename tud_dfu_reboot_cb() to tud_dfu_detach_cb()
This commit is contained in:
parent
57d9f696a2
commit
27676f738d
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
//--------------------------------------------------------------------+
|
||||
|
Loading…
x
Reference in New Issue
Block a user