I think likely what happens is the digitalPulse in servo causes an exception which stops the next command executing which in turn causes the interval to keep on being called.
Unminified source is at : http://www.espruino.com/modules/servo.js
Is that literally all the code you have there? because I'd only expect that error if you were calling move with something outside the 0..1 range
indeed, that's all my code - I just wanted to "quickly" test a servo (but nothing works quickly if I am touching it - I tend to break everything)
Amendment: I also just checked the firmware state (just to be sure): and, yes, it is 2v10
Amendment 2: just to be sure, I flashed 2v10 one more time and tried my code again - with the same result.
© Espruino, powered by microcosm.
Report a problem