dfu: Properly zero out timeout value
Zero out timeout value; letting it filled with undefined values ends up with the dfu host hanging. Signed-off-by: Pantelis Antoniou <panto@antoniou-consulting.com>
This commit is contained in:
parent
df93cd9c6f
commit
80eb1bd02d
@ -164,6 +164,9 @@ static void handle_getstatus(struct usb_request *req)
|
||||
|
||||
/* send status response */
|
||||
dstat->bStatus = f_dfu->dfu_status;
|
||||
dstat->bwPollTimeout[0] = 0;
|
||||
dstat->bwPollTimeout[1] = 0;
|
||||
dstat->bwPollTimeout[2] = 0;
|
||||
dstat->bState = f_dfu->dfu_state;
|
||||
dstat->iString = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user