Skip to content

Commit d307ceb

Browse files
committed
removing unused variable for pylint
1 parent ab6e9d8 commit d307ceb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/lsm303dlh_mag_compass.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Display compass heading data five times per second. """
1+
""" Display compass heading data five times per second """
22
import time
33
from math import atan2, degrees
44
import board
@@ -17,7 +17,7 @@ def vector_2_degrees(x, y):
1717

1818

1919
def get_heading(_sensor):
20-
magnet_x, magnet_y, magnet_z = _sensor.magnetic
20+
magnet_x, magnet_y, _ = _sensor.magnetic
2121
return vector_2_degrees(magnet_x, magnet_y)
2222

2323

0 commit comments

Comments
 (0)