Skip to content

Commit

Permalink
Fix error at servo block
Browse files Browse the repository at this point in the history
  • Loading branch information
noqman committed Dec 2, 2024
1 parent 75234ca commit c14e99f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion servo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ namespace sumobit{
//% servo.defl=1
//% position.min=0 position.max=180
//% position.defl=90
//% speed.min=0 position.max=180
//% speed.min=0 speed.max=180
//% speed.defl=9
export function setServoPosition(servo: SumobitServoChannel, position: number, speed:number=9): void {
position = sumobit.limit(position, 0, 180);
Expand Down

0 comments on commit c14e99f

Please sign in to comment.