diff --git a/board.go b/board.go index 67df72c..95c02a6 100644 --- a/board.go +++ b/board.go @@ -58,7 +58,7 @@ func (a *Animation) Next() (image.Image, <-chan time.Time, error) { json.Unmarshal([]byte(string(msg.Payload())), &incoming) fmt.Println(incoming.Type) if incoming.Type == "doorbell" { - go loadImage(incoming.Type, incoming.Image, a) + go a.loadImage(incoming.Type, incoming.Image) } else { a.ctx.DrawString(a.msg, 5, 9) }