Skip to content

Commit

Permalink
Fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
Yatekii committed Mar 3, 2023
1 parent d4a8224 commit e07ef0a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rtt-target/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,15 @@
//! set_print_channel(channels.up.0);
//! rprintln!("Please enter the mode [0: Mode 0, 1: Mode 1]: ");
//! let mut read = 0;
//! let mut mode = -1;
//! while mode == -1 {
//! let mut mode = None;
//! while mode.is_none() {
//! read = channels.down.0.read(&mut read_buf);
//! for i in 0..read {
//! let val = read_buf[i] as char;
//! if val == '0' {
//! mode = 0;
//! mode = Some(0);
//! } else if val == '1' {
//! mode = 1;
//! mode = Some(1);
//! }
//! }
//! }
Expand Down

0 comments on commit e07ef0a

Please sign in to comment.