From df46a56cc37ee5c9d6fecf4161e45f384eebc6d7 Mon Sep 17 00:00:00 2001 From: Vladan Popovic Date: Mon, 11 Jul 2022 16:16:30 +0200 Subject: [PATCH] send Movement from accel main thread --- src/accel.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/accel.rs b/src/accel.rs index 772ed41..5eef823 100644 --- a/src/accel.rs +++ b/src/accel.rs @@ -10,7 +10,7 @@ pub fn main(sender: SyncSender) -> Result<(), anyhow::Error> { println!("entering ACCELERATOR sender loop ..."); for i in 0..20 { println!("sending ACCELERATOR message ({}) of 20 ...", i); - let _ = sender.send(Msg::Location("{\"velocity\": 21.43, \"altitude\": 367}".to_string()))?; + let _ = sender.send(Msg::Movement("{\"velocity\": 21.43, \"altitude\": 367}".to_string()))?; thread::sleep(Duration::from_millis(2000)); } Ok(())