Skip to content

Commit

Permalink
Merge pull request #80 from GuenterQ/master
Browse files Browse the repository at this point in the history
Fixed the operation mode reading issue
  • Loading branch information
ladyada committed Apr 22, 2021
2 parents 934b1f5 + 0ce9196 commit 2f1ef83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_bno055.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def mode(self):
is calculated from accelerometer, gyroscope and the magnetometer.
"""
return self._read_register(_MODE_REGISTER)
return self._read_register(_MODE_REGISTER) & 0b00001111 # Datasheet Table 4-2

@mode.setter
def mode(self, new_mode):
Expand Down

0 comments on commit 2f1ef83

Please sign in to comment.