Skip to content

Commit

Permalink
Wait for Talon version before trying to control
Browse files Browse the repository at this point in the history
  • Loading branch information
CoryNessCTR committed Nov 21, 2023
1 parent 29bccde commit 81718d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions java/CurrentLimits/src/test/java/CurrentLimitTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ public void constructDevices() {
assert HAL.initialize(500, 0);

talon = new TalonFX(0);

/* Confirm we get the version code from the Talon before trying to control it */
talon.getVersion().waitForUpdate(1.0);
}

@Test
Expand Down

0 comments on commit 81718d5

Please sign in to comment.