Skip to content

Commit cc9ea2c

Browse files
committed
replaces use of deprecated std::thread::sleep_ms()
1 parent 9025963 commit cc9ea2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/probe_pins.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ fn probe_pins<T: SerialPort>(port: &mut T) -> serial::Result<()> {
3434
let mut toggle = true;
3535

3636
loop {
37-
thread::sleep_ms(1000);
37+
thread::sleep(Duration::from_secs(1));
3838

3939
if toggle {
4040
rts = !rts;

0 commit comments

Comments
 (0)