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