Skip to content

Commit 7d40b42

Browse files
committed
adding stop commands and also adding https to link in docs
1 parent f67bc93 commit 7d40b42

File tree

3 files changed

+1536
-1
lines changed

3 files changed

+1536
-1
lines changed

ev3_scratch.js

+2
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,7 @@ function executeQueryQueue()
508508
if (duration > 0) // allow zero duration to run motors asynchronously
509509
{
510510
motorsStop(stopMotors, 'coast'); // xxx
511+
startMotors(stopMotors, 0); // workaround for bug
511512
}
512513
if (callback)
513514
callback();
@@ -1013,6 +1014,7 @@ function motorsOff(which, how)
10131014
{
10141015
clearDriveTimer();
10151016
motorsStop(which, how);
1017+
startMotors(which, 0); // workaround for bug
10161018
}
10171019

10181020
function steeringControl(ports, what, duration, callback)

0 commit comments

Comments
 (0)