only animate if no countdown active
build rgb-board / build (push) Successful in 1m37s Details

main
Nathan Wagner 10 months ago
parent c4ffac2251
commit 41e317452f

@ -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 {

Loading…
Cancel
Save