Skip to content

Commit 65b2040

Browse files
committed
fix bootloader regressions
1 parent 3993a0d commit 65b2040

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

bao1x-boot/boot1/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,10 @@ pub unsafe extern "C" fn rust_entry() -> ! {
219219
// needed after reset for the display to initialize
220220
if let Some(ref mut sh1107) = oled {
221221
// show the boot logo
222-
sh1107.init();
222+
sh1107.init().ok();
223223
delay(100);
224224
sh1107.blit_screen(&ux_api::bitmaps::baochip128x128::BITMAP);
225-
sh1107.draw();
225+
sh1107.draw().ok();
226226
delay(150);
227227
} else {
228228
delay(250);
@@ -450,5 +450,5 @@ pub fn marquee(sh1107: &mut Oled128x128, msg: &str) {
450450
bao1x_hal::sh1107::Mono::White.into(),
451451
bao1x_hal::sh1107::Mono::Black.into(),
452452
);
453-
sh1107.draw();
453+
sh1107.draw().ok();
454454
}

bao1x-boot/boot1/src/platform/bao1x/usb/handlers.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ pub fn usb_ep1_bulk_out_complete(
364364
None,
365365
),
366366
false,
367+
((100_000_000 / 2) / 2_000_000) as u8,
367368
),
368369
&iox,
369370
)

0 commit comments

Comments
 (0)