From 812fbf5d4f5648acdf9042fe8438fad99614e9f4 Mon Sep 17 00:00:00 2001 From: bunnie Date: Wed, 13 Jan 2021 00:32:07 +0800 Subject: [PATCH] this patch fixes the previous commit's panic --- services/shell/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/shell/src/main.rs b/services/shell/src/main.rs index 22b5c4478..a13f7823a 100644 --- a/services/shell/src/main.rs +++ b/services/shell/src/main.rs @@ -203,6 +203,7 @@ fn shell_main() -> ! { info!("SHELL: 1"); let mut string_buffer = String::new(4096); + let mut input_buf = String::new(4096); graphics_server::set_glyph_style(graphics_conn, GlyphStyle::Small) .expect("unable to set glyph"); let (_, font_h) = graphics_server::query_glyph(graphics_conn).expect("unable to query glyph"); @@ -228,7 +229,6 @@ fn shell_main() -> ! { info!("SHELL: 3"); let mut last_time: u64 = ticktimer_server::elapsed_ms(ticktimer_conn).unwrap(); - let mut input_buf = String::new(4096); loop { //////////////// status bar graphics_server::set_glyph_style(graphics_conn, GlyphStyle::Small)