From a6320ef2906bef5aad0afb11f4b74ef50bbe6264 Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 6 Jan 2026 13:40:17 +0800 Subject: [PATCH] fix missing csw update - maybe this resolves some of the debian issues? this was found by the latest version of rustc --- bao1x-boot/boot1/src/platform/bao1x/usb/handlers.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bao1x-boot/boot1/src/platform/bao1x/usb/handlers.rs b/bao1x-boot/boot1/src/platform/bao1x/usb/handlers.rs index 1578fc42a..ddbcc413d 100644 --- a/bao1x-boot/boot1/src/platform/bao1x/usb/handlers.rs +++ b/bao1x-boot/boot1/src/platform/bao1x/usb/handlers.rs @@ -762,6 +762,7 @@ fn process_read_command(this: &mut CorigineUsb, cbw: Cbw) { length as usize, ); this.ms_state = UmsState::DataPhase; + csw.update_hw(); return; } crate::println_d!( @@ -796,6 +797,7 @@ fn process_read_command(this: &mut CorigineUsb, cbw: Cbw) { ); this.ms_state = UmsState::DataPhase; } + csw.update_hw(); } fn process_write_command(this: &mut CorigineUsb, cbw: Cbw) {