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: }