From c5eab4ce6d28f3ec4fa9ef54951f9a96f61fa8c7 Mon Sep 17 00:00:00 2001 From: Gregor Riepl Date: Sun, 31 Jan 2021 18:41:50 +0100 Subject: [PATCH] More debugging --- uncanny/can.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/uncanny/can.go b/uncanny/can.go index fda48d8..74dae85 100644 --- a/uncanny/can.go +++ b/uncanny/can.go @@ -113,14 +113,17 @@ func (c *Can) ActiveDispenser() int { } func (c *Can) Dispense(slot int) error { + log.Printf("Starting dispense on slot %d", slot) return c.bus.Publish(DispenseMessage{slot}.Encode()) } func (c *Can) Cancel() error { + log.Printf("Stopping dispense") return c.bus.Publish(DispenseMessage{DispenseSlotOff}.Encode()) } func (c *Can) initialize() { + log.Printf("Initializing") // enable automatic status updates c.bus.Publish(AutoMessage{true}.Encode()) c.bus.Publish(RequestFeedbackMessage())