From 5d0c490a55f220633bfc2f0687bef00d815fb7a8 Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 31 Mar 2026 00:54:57 +0800 Subject: [PATCH] fix other hosted mode --- services/bao1x-emu/src/display.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/bao1x-emu/src/display.rs b/services/bao1x-emu/src/display.rs index b0bc7e92a..864d217ef 100644 --- a/services/bao1x-emu/src/display.rs +++ b/services/bao1x-emu/src/display.rs @@ -151,11 +151,12 @@ impl<'a> Oled128x128 { } impl FrameBuffer for Oled128x128 { - fn draw(&mut self) { + fn draw(&mut self) -> Result<(), xous::Error> { for (index, pixel) in self.native_buffer.lock().unwrap().iter_mut().enumerate() { *pixel = if (self.buffer[index / 32] & (1 << (index % 32))) != 0 { DARK_COLOUR } else { LIGHT_COLOUR } } + Ok(()) } fn clear(&mut self) { self.buffer_mut().fill(0xFFFF_FFFF); }