1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-05-09 19:29:27 +08:00

fixed undefined method errors

This commit is contained in:
Benjamin Radovsky 2016-10-17 17:59:23 +11:00 committed by GitHub
parent 8f4320a439
commit 04275a0992

View File

@ -24,7 +24,7 @@ Example:
keys := keyboard.NewDriver()
work := func() {
gobot.On(keys.Event("key"), func(data interface{}) {
keys.On(keys.Event("key"), func(data interface{}) {
key := data.(keyboard.KeyEvent)
if key.Key == keyboard.A {