Skip to content

Commit

Permalink
Update compass.py
Browse files Browse the repository at this point in the history
fix "global name is not defined" error in AndroidCompass.__init__()
  • Loading branch information
ChrisCole42 committed Jul 13, 2014
1 parent c8b9632 commit d005a1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plyer/platforms/android/compass.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def onAccuracyChanged(self, sensor, accuracy):

class AndroidCompass(Compass):
def __init__(self):
super(AndroidAccelerometer, self).__init__()
super(AndroidCompass, self).__init__()
self.listener = MagneticFieldSensorListener()

def _enable(self):
Expand Down

0 comments on commit d005a1e

Please sign in to comment.