From e1e511f18cbdd5a8011f1ff6c7b4ffba689d3d2f Mon Sep 17 00:00:00 2001 From: puckoprutt Date: Mon, 13 Jul 2026 19:36:01 +0200 Subject: [PATCH] stupidly enough it works correctly now, but needs to clone the word.. --- src/example/usb-example.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/example/usb-example.rs b/src/example/usb-example.rs index f686af1..da728d4 100644 --- a/src/example/usb-example.rs +++ b/src/example/usb-example.rs @@ -54,14 +54,14 @@ fn main() -> ! { if (event >> 7) & 1 == 1 { // interrupt has happened. match rx.poll() { - Some(mut msg) => { + Some(msg) => { Terminal::clear_screen(); Terminal::print_banner(); for i in 0..msg.words { - Terminal::pp_println(msg.get_word(i).word, 0); - Terminal::pp_println(msg.get_word(i).word, 10); - Terminal::pp_println(msg.get_word(i).word, 20); - Terminal::pp_println(msg.get_word(i).word, 30); + Terminal::pp_logln(msg.message[i].word.clone(), 0); + Terminal::pp_logln(msg.message[i].word.clone(), 10); + Terminal::pp_logln(msg.message[i].word.clone(), 20); + Terminal::pp_logln(msg.message[i].word.clone(), 30); } Terminal::user_prompt(); }