From 0f20a327f2180296c5969ebc0cd381051e929493 Mon Sep 17 00:00:00 2001 From: Gregor Riepl Date: Sun, 31 Jan 2021 18:44:43 +0100 Subject: [PATCH] Use End, not Empty --- uncanny/can.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uncanny/can.go b/uncanny/can.go index 74dae85..4ea4f80 100644 --- a/uncanny/can.go +++ b/uncanny/can.go @@ -56,7 +56,7 @@ func (c *Can) Handle(frame can.Frame) { log.Printf("Data: 0x%02x 0x%02x", frame.Data[0], frame.Data[1]) c.swstate = obj.(FeedbackMessage) // when all end switches are off: send stop command - if !c.swstate.EmptyD && !c.swstate.EmptyE && !c.swstate.EmptyF && !c.swstate.EmptyG && !c.swstate.EmptyH { + if !c.swstate.EndD && !c.swstate.EndE && !c.swstate.EndF && !c.swstate.EndG && !c.swstate.EndH { log.Printf("All end switches off, stopping dispenser") c.Cancel() }