We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6d92843 + a774522 commit 720cf74Copy full SHA for 720cf74
1 file changed
serial_term/src/main.rs
@@ -2,6 +2,7 @@ use crate::egui::Color32;
2
use crate::egui::RichText;
3
use eframe::egui;
4
use std::string::String;
5
+use std::time::Duration;
6
7
#[derive(Default)]
8
struct SerialAppCore {
@@ -76,6 +77,8 @@ impl eframe::App for SerialAppCore {
76
77
.unwrap()
78
.as_mut()
79
.read_to_string(&mut self.text_buffer);
80
+
81
+ ctx.request_repaint_after(Duration::from_secs(1));
82
});
83
}
84
0 commit comments