Skip to content

Commit 0298b17

Browse files
pbio/drivebase: Fix right motor not checked in passive stall condition.
Fixes #294
1 parent 216d9f6 commit 0298b17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pbio/src/drivebase.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1011,7 +1011,7 @@ pbio_error_t pbio_drivebase_is_stalled(pbio_drivebase_t *db, bool *stalled, uint
10111011
if (err != PBIO_SUCCESS) {
10121012
return err;
10131013
}
1014-
err = pbio_servo_is_stalled(db->left, &stalled_right, &stall_duration_right);
1014+
err = pbio_servo_is_stalled(db->right, &stalled_right, &stall_duration_right);
10151015
if (err != PBIO_SUCCESS) {
10161016
return err;
10171017
}

0 commit comments

Comments
 (0)