Skip to content

Commit

Permalink
Merge pull request #4 from tombsar/patch-1
Browse files Browse the repository at this point in the history
Fix typo of numeric constant
  • Loading branch information
Gadgetoid authored Mar 20, 2020
2 parents 56ec1ef + 2e1391e commit 7007934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/lsm303d/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ def magnetometer(self):
self.setup()
mag = self._lsm303d.get('MAGNETOMETER')
x, y, z = mag.x, mag.y, mag.z
x, y, z = [(p / 32676.0) * self._mag_full_scale_guass for p in (x, y, z)]
x, y, z = [(p / 32767.0) * self._mag_full_scale_guass for p in (x, y, z)]
return x, y, z

def accelerometer(self):
Expand Down

0 comments on commit 7007934

Please sign in to comment.