From 3365c8f07579342d594748310f82d6eb6b320427 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Mon, 5 Feb 2024 19:15:21 +0000 Subject: [PATCH] try arm64 runner --- .gitea/workflows/build-push.yaml | 2 +- animation.go | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build-push.yaml b/.gitea/workflows/build-push.yaml index ab29c41..7a6d643 100644 --- a/.gitea/workflows/build-push.yaml +++ b/.gitea/workflows/build-push.yaml @@ -34,4 +34,4 @@ jobs: with: push: true tags: registry.local/rgbboard:${{ steps.short-sha.outputs.short-sha }} - platforms: linux/arm64,linux/amd64 \ No newline at end of file + platforms: linux/arm64 \ No newline at end of file diff --git a/animation.go b/animation.go index b6cd863..967a057 100644 --- a/animation.go +++ b/animation.go @@ -108,10 +108,9 @@ 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" { - a.msg = string(msg.Payload()) - a.ctx.DrawString(a.msg, 5, 9) - } else { go appendImage(incoming.Image, a) + } else { + a.ctx.DrawString(a.msg, 5, 9) } default: }