Skip to content

Commit 9e188fc

Browse files
committed
remove error exit when the angle exceeds the servo's limit
1 parent 6fe02f5 commit 9e188fc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/servo/main.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ int main(void) {
3636
printf("\nThe angle you provided exceeds 360 degrees\n");
3737
return -1;
3838
} else if (result == RETURNCODE_FAIL) {
39-
printf("\nThe angle could not be changed. The provided angle exceeds the servo's limit\n");
40-
return -1;
39+
printf("\nAngle %d exceeds the servo's limit angle.\n", i);
4140
}
4241
}
4342
if (libtock_servo_read_angle(index, &angle) != RETURNCODE_SUCCESS) {

0 commit comments

Comments
 (0)