File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -466,7 +466,13 @@ impl<'a> Oled128x128<'a> {
466466 . txrx_data_async_from_parts :: < u8 > ( total_buf_len, len, true , false )
467467 . expect ( "Couldn't initiate oled command" ) ;
468468 }
469- self . spim . txrx_await ( false ) . map ( |_| ( ) )
469+ self . spim
470+ . txrx_await ( false )
471+ . inspect_err ( |_| {
472+ #[ cfg( feature = "std" ) ]
473+ log:: error!( "timeout in send_command" ) ;
474+ } )
475+ . map ( |_| ( ) )
470476 }
471477
472478 pub fn init ( & mut self ) -> Result < ( ) , xous:: Error > {
@@ -612,7 +618,10 @@ impl<'a> FrameBuffer for Oled128x128<'a> {
612618 . txrx_data_async_from_parts :: < u8 > ( page * chunk_size, chunk_size, true , false )
613619 . expect ( "Couldn't initiate oled data transfer" ) ;
614620 }
615- self . spim . txrx_await ( false ) ?;
621+ self . spim . txrx_await ( false ) . inspect_err ( |_| {
622+ #[ cfg( feature = "std" ) ]
623+ log:: error!( "timeout in draw" ) ;
624+ } ) ?;
616625 }
617626 Ok ( ( ) )
618627 }
You can’t perform that action at this time.
0 commit comments