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())