diff --git a/wpilibj/src/main/java/edu/wpi/first/wpilibj/ADIS16470_IMU.java b/wpilibj/src/main/java/edu/wpi/first/wpilibj/ADIS16470_IMU.java index 4e38b713bf2..c9807efea64 100644 --- a/wpilibj/src/main/java/edu/wpi/first/wpilibj/ADIS16470_IMU.java +++ b/wpilibj/src/main/java/edu/wpi/first/wpilibj/ADIS16470_IMU.java @@ -609,7 +609,7 @@ private int readRegister(int reg) { m_spi.write(buf, 2); m_spi.read(false, buf, 2); - return (buf[0] << 8) & buf[1]; + return (buf[0] << 8) | buf[1]; } private void writeRegister(int reg, int val) {