From ea472f9e129462339a5c347ee9b6189ff3729ff3 Mon Sep 17 00:00:00 2001 From: Edgar O Silva Date: Wed, 30 Oct 2013 20:37:42 -0600 Subject: [PATCH] Fix issue with currentSpeed having to go through driver. --- examples/motor.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/motor.coffee b/examples/motor.coffee index 7f7bdaf..7c8ecb3 100644 --- a/examples/motor.coffee +++ b/examples/motor.coffee @@ -14,7 +14,7 @@ Cylon.robot every 0.05.seconds(), -> speed += increment my.motor.speed(speed) - console.log("current speed => #{ my.motor.driver.currentSpeed }") + console.log("current speed => #{ my.motor.currentSpeed() }") increment = -increment if (speed is 0) or (speed is 255) .start()