Skip to content

Commit ac9a8f3

Browse files
committed
Merge pull request #1 from rgsteele/rgsteele-patch-1
Update the return type of MPU6050::getMotionStatus()
2 parents d59fbf7 + 1c6ab03 commit ac9a8f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Arduino/MPU6050/MPU6050.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1994,7 +1994,7 @@ uint32_t MPU6050::getExternalSensorDWord(int position) {
19941994
* @return Motion detection status byte
19951995
* @see MPU6050_RA_MOT_DETECT_STATUS
19961996
*/
1997-
bool MPU6050::getMotionStatus() {
1997+
uint8_t MPU6050::getMotionStatus() {
19981998
I2Cdev::readByte(devAddr, MPU6050_RA_MOT_DETECT_STATUS, buffer);
19991999
return buffer[0];
20002000
}
@@ -3147,4 +3147,4 @@ uint8_t MPU6050::getDMPConfig2() {
31473147
}
31483148
void MPU6050::setDMPConfig2(uint8_t config) {
31493149
I2Cdev::writeByte(devAddr, MPU6050_RA_DMP_CFG_2, config);
3150-
}
3150+
}

0 commit comments

Comments
 (0)