From bb73b62722e667ea57742582fd6b6a1d44498e52 Mon Sep 17 00:00:00 2001 From: Gregor Reitzenstein Date: Wed, 9 Dec 2020 11:14:17 +0100 Subject: [PATCH] Fixes that stupid error --- src/initiator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/initiator.rs b/src/initiator.rs index 8b57a3b..4f3f1bd 100644 --- a/src/initiator.rs +++ b/src/initiator.rs @@ -107,7 +107,7 @@ impl Sensor for Dummy { -> BoxFuture<'static, (Option, MachineState)> { let step = self.step; - self.step != self.step; + self.step = !self.step; let f = async move { Timer::after(std::time::Duration::from_secs(1)).await;