1
0
forked from M-Labs/kirdy

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

View File

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