Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Commit

Permalink
fix EasyLegacyMotorController.setMotorChannelMode bug when using RESE…
Browse files Browse the repository at this point in the history
…T_ENCODERS

Former-commit-id: d8ae3b9c09fbbcbb8ddf3d4080ec4d420c83edc3
Former-commit-id: b1499b2
  • Loading branch information
rgatkinson committed Feb 12, 2016
1 parent 0750e57 commit 3bc8f45
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ private boolean isArmed()
if (mode == RunMode.RESET_ENCODERS)
{
// Unclear if this is needed
while (this.getMotorTargetPosition(motor) != 0)
while (this.getMotorCurrentPosition(motor) != 0)
{
if (!this.isArmed()) break;
Thread.yield();
Expand Down

0 comments on commit 3bc8f45

Please sign in to comment.