解决textui framework初始化成功后串口无法正常换行 (#443)

This commit is contained in:
Jomo 2023-11-16 21:37:04 +08:00 committed by GitHub
parent edaf015400
commit a0c98cd4df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -748,6 +748,7 @@ impl TextuiWindow {
if !self.flags.contains(WindowFlag::TEXTUI_CHROMATIC) {
return Ok(());
}
send_to_default_serial8250_port(&[character as u8]);
//进行换行操作
if character == '\n' {
@ -831,10 +832,6 @@ impl TextuiWindow {
}
}
} else {
// 输出其他字符
send_to_default_serial8250_port(&[character as u8]);
if is_enable_window == true {
if let TextuiVline::Chromatic(vline) =
&self.vlines[<LineId as Into<usize>>::into(self.vline_operating)]