Fixed typo in change direction method.
This commit is contained in:
parent
f8b822e852
commit
95a6f3bc47
|
@ -75,7 +75,7 @@ class SpheroRobot
|
|||
me.sphero.setRGB(0xFF0000, me)
|
||||
me.sphero.stop()
|
||||
|
||||
changeDirection: ()
|
||||
changeDirection: () ->
|
||||
every 1.seconds(), () ->
|
||||
me.sphero.roll 90, Math.floor(Math.random() * 360) if @payingPower
|
||||
|
||||
|
|
Loading…
Reference in New Issue