diff --git a/libs/core/output.ts b/libs/core/output.ts index 1b73ca8a..66a9b5b8 100644 --- a/libs/core/output.ts +++ b/libs/core/output.ts @@ -113,13 +113,14 @@ namespace output { //% weight=98 group="Motors" blockGap=8 onForTime(power: number, ms: number, brake = false) { step(this.port, { - speed: power, + power, step1: 0, step2: ms, step3: 0, useSteps: false, useBrake: brake }) + loops.pause(ms); } /**