From f2e7a90b166731f59c38858d87f764ac898b1c54 Mon Sep 17 00:00:00 2001 From: Robert Hedman <robert.hedman@mac.com> Date: Sun, 26 Nov 2017 23:27:05 +0100 Subject: [PATCH] Small sleep update --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index b5d6d46..53b0cd1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -125,7 +125,7 @@ fn main() { // request lidar data - thread::sleep(time::Duration::new(3,0)); + //thread::sleep(time::Duration::new(3,0)); let stream_write_response = stream.write(&[65 as u8, 66 as u8]); println!("mapper wrote {:?} to stream.", stream_write_response); @@ -146,7 +146,7 @@ fn main() { request_location_tx.send(false).unwrap(); break; } - thread::sleep(time::Duration::new(1,0*50*1000000)); // from ms to ns + thread::sleep(time::Duration::new(2,0*50*1000000)); // from ms to ns }; -- GitLab