Update read_fan_speed_and_cpu.py

This commit is contained in:
manuelkamp 2021-05-18 23:12:30 +02:00 committed by GitHub
parent f1bef44fc1
commit 8fce03054e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ GPIO.add_event_detect(TACH, GPIO.FALLING, fell)
try:
while True:
cpu = CPUTemperature()
print ("%.f RPM | CPU Temp: $.f °C" % (rpm, cpu.temperature))
print ("%.f RPM | CPU Temp: %.f °C" % (rpm, cpu.temperature))
rpm = 0
time.sleep(1) # Detect every second