Fix Recv Dfu cmd doesn't hard reset bug

This commit is contained in:
linuswck 2024-03-07 10:26:32 +08:00
parent 7f6a385e1d
commit b7231f48ff
1 changed files with 1 additions and 0 deletions

View File

@ -202,6 +202,7 @@ pub fn execute_cmd(buffer: &mut [u8], buffer_size: usize, socket: &mut SocketHan
unsafe {
dfu::set_dfu_trigger();
}
*state = State::HardReset;
}
Some(DeviceCmd::SetActiveReportMode) => {
match cmd.json.data_bool{