From 41e317452fe076dab4ef1cb0fe70da70ff39b3a0 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Mon, 5 Feb 2024 20:28:06 +0000 Subject: [PATCH] only animate if no countdown active --- animation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/animation.go b/animation.go index 05b1036..98b07cd 100644 --- a/animation.go +++ b/animation.go @@ -91,7 +91,7 @@ func appendImage(img string, a *Animation) { func (a *Animation) Next() (image.Image, <-chan time.Time, error) { var incoming incomingMessage - if a.countDown != 5000 { + if a.countDown == 5000 { a.animateMario() } if a.images["doorbell"] != nil {