fix bootloader regressions

This commit is contained in:
bunnie 2026-03-30 23:59:31 +08:00
parent 3993a0dc88
commit 65b2040cdf
2 changed files with 4 additions and 3 deletions

View file

@ -219,10 +219,10 @@ pub unsafe extern "C" fn rust_entry() -> ! {
// needed after reset for the display to initialize
if let Some(ref mut sh1107) = oled {
// show the boot logo
sh1107.init();
sh1107.init().ok();
delay(100);
sh1107.blit_screen(&ux_api::bitmaps::baochip128x128::BITMAP);
sh1107.draw();
sh1107.draw().ok();
delay(150);
} else {
delay(250);
@ -450,5 +450,5 @@ pub fn marquee(sh1107: &mut Oled128x128, msg: &str) {
bao1x_hal::sh1107::Mono::White.into(),
bao1x_hal::sh1107::Mono::Black.into(),
);
sh1107.draw();
sh1107.draw().ok();
}

View file

@ -364,6 +364,7 @@ pub fn usb_ep1_bulk_out_complete(
None,
),
false,
((100_000_000 / 2) / 2_000_000) as u8,
),
&iox,
)