only animate if no countdown active
All checks were successful
build rgb-board / build (push) Successful in 1m37s
All checks were successful
build rgb-board / build (push) Successful in 1m37s
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user