diff options
| author | MasterPhi <[email protected]> | 2021-07-06 18:03:05 +0200 |
|---|---|---|
| committer | MasterPhi <[email protected]> | 2021-07-06 18:04:24 +0200 |
| commit | cf4220a9fb24279b423656257cea39b3ab68aa67 (patch) | |
| tree | dd6f9b740e05beac42881128f357aa705e26992b /src/class/dfu/dfu_device.c | |
| parent | c2b9ac9dd415505350c40f6830c1d211de67c342 (diff) | |
Update
Diffstat (limited to 'src/class/dfu/dfu_device.c')
| -rw-r--r-- | src/class/dfu/dfu_device.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/class/dfu/dfu_device.c b/src/class/dfu/dfu_device.c index 9eafca359..a186e9140 100644 --- a/src/class/dfu/dfu_device.c +++ b/src/class/dfu/dfu_device.c @@ -147,6 +147,7 @@ void dfu_moded_init(void) _dfu_state_ctx.status = DFU_STATUS_OK; _dfu_state_ctx.attrs = 0; _dfu_state_ctx.blk_transfer_in_proc = false; + _dfu_state_ctx.alt = 0; dfu_debug_print_context(); } @@ -158,6 +159,8 @@ void dfu_moded_reset(uint8_t rhport) _dfu_state_ctx.state = DFU_IDLE; _dfu_state_ctx.status = DFU_STATUS_OK; _dfu_state_ctx.blk_transfer_in_proc = false; + _dfu_state_ctx.alt = 0; + dfu_debug_print_context(); } |
