From af060a16000f718b65a3ab3d6d855fb4ed5d967a Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 16 Feb 2024 01:37:41 +0000 Subject: [PATCH] Update 'board.go' --- board.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }