Skip to content

Commit

Permalink
[wpilibj] ADIS16470: Allow product ID of 16470 (#7704)
Browse files Browse the repository at this point in the history
C++ allows either 16982 or 16470, do the same for Java.
  • Loading branch information
PeterJohnson authored Jan 17, 2025
1 parent e52f400 commit 4caa16e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,8 @@ private boolean switchToStandardSPI() {
}
readRegister(PROD_ID); // Dummy read
// Validate the product ID
if (readRegister(PROD_ID) != 16982) {
int prodId = readRegister(PROD_ID);
if (prodId != 16982 && prodId != 16470) {
DriverStation.reportError("Could not find an ADIS16470", false);
close();
return false;
Expand Down

0 comments on commit 4caa16e

Please sign in to comment.