Skip to content

Commit 654c716

Browse files
committed
pbio/drivebase: Fix stop with hold.
1 parent 7deaa90 commit 654c716

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
@@ -339,7 +339,7 @@ pbio_error_t pbio_drivebase_stop(pbio_drivebase_t *db, pbio_control_on_completio
339339
}
340340

341341
// Holding is the same as traveling by 0 degrees.
342-
if (on_completion == PBIO_CONTROL_ON_COMPLETION_CONTINUE) {
342+
if (on_completion == PBIO_CONTROL_ON_COMPLETION_HOLD) {
343343
return pbio_drivebase_drive_straight(db, 0, on_completion);
344344
}
345345

0 commit comments

Comments
 (0)