Skip to content

Commit

Permalink
Use virtio-console instead of serial
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkar598 committed Jun 23, 2024
1 parent daf1426 commit cb1e218
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ pub struct PollData {
}

fn main() {
// Open serial connection on /dev/ttyS2, max baud rate
let port = serialport::new("/dev/ttyS2", 115_200)
// Open serial connection on /dev/hvc2, max baud rate
let port = serialport::new("/dev/hvc2", 115_200)
.timeout(Duration::from_millis(10))
.open();

Expand Down

0 comments on commit cb1e218

Please sign in to comment.