diff --git a/examples/lsm303dlh_mag_compass.py b/examples/lsm303dlh_mag_compass.py index 9927228..56f811b 100644 --- a/examples/lsm303dlh_mag_compass.py +++ b/examples/lsm303dlh_mag_compass.py @@ -22,5 +22,5 @@ def get_heading(_sensor): while True: - print("heading: {.2f} degrees".format(get_heading(sensor))) + print("heading: {:.2f} degrees".format(get_heading(sensor))) time.sleep(0.2)