Skip to content

Commit

Permalink
replaces use of deprecated std::thread::sleep_ms()
Browse files Browse the repository at this point in the history
  • Loading branch information
dcuddeback committed Jul 1, 2017
1 parent 9025963 commit cc9ea2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/probe_pins.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ fn probe_pins<T: SerialPort>(port: &mut T) -> serial::Result<()> {
let mut toggle = true;

loop {
thread::sleep_ms(1000);
thread::sleep(Duration::from_secs(1));

if toggle {
rts = !rts;
Expand Down

0 comments on commit cc9ea2c

Please sign in to comment.