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(); }