From 3ceca1c99c55b675813f45e6949d54f0e95b23ee Mon Sep 17 00:00:00 2001 From: funnym0nk3y <41870754+funnym0nk3y@users.noreply.github.com> Date: Tue, 2 Feb 2021 15:37:54 +0100 Subject: [PATCH] Update print to print() --- read_fan_speed.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/read_fan_speed.py b/read_fan_speed.py index ed78353..67a98e0 100644 --- a/read_fan_speed.py +++ b/read_fan_speed.py @@ -34,9 +34,9 @@ GPIO.add_event_detect(TACH, GPIO.FALLING, fell) try: while True: - print "%.f RPM" % rpm + print ("%.f RPM" % rpm) rpm = 0 time.sleep(1) # Detect every second except KeyboardInterrupt: # trap a CTRL+C keyboard interrupt - GPIO.cleanup() # resets all GPIO ports used by this function \ No newline at end of file + GPIO.cleanup() # resets all GPIO ports used by this function