Skip to content

Commit

Permalink
set dfuERROR if any error on flash write
Browse files Browse the repository at this point in the history
  • Loading branch information
dylad committed Nov 3, 2021
1 parent c3028de commit d545639
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sys/usb/usbus/dfu/dfu.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ static int _dfu_class_control_req(usbus_t *usbus, usbus_dfu_device_t *dfu, usb_s
}
if (ret < 0) {
/* Error occurs, stall the current transfer */
dfu->dfu_state = USB_DFU_STATE_DFU_ERROR;
return -1;
}
}
Expand Down

0 comments on commit d545639

Please sign in to comment.