This commit is contained in:
2
board.go
2
board.go
@@ -58,7 +58,7 @@ func (a *Animation) Next() (image.Image, <-chan time.Time, error) {
|
|||||||
json.Unmarshal([]byte(string(msg.Payload())), &incoming)
|
json.Unmarshal([]byte(string(msg.Payload())), &incoming)
|
||||||
fmt.Println(incoming.Type)
|
fmt.Println(incoming.Type)
|
||||||
if incoming.Type == "doorbell" {
|
if incoming.Type == "doorbell" {
|
||||||
go loadImage(incoming.Type, incoming.Image, a)
|
go a.loadImage(incoming.Type, incoming.Image)
|
||||||
} else {
|
} else {
|
||||||
a.ctx.DrawString(a.msg, 5, 9)
|
a.ctx.DrawString(a.msg, 5, 9)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user