Skip to content

Commit

Permalink
Limit fan RPM to 10000
Browse files Browse the repository at this point in the history
  • Loading branch information
amanusk committed Jul 11, 2020
1 parent 6fac4c6 commit 9851b46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion s_tui/sources/fan_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ def update(self):
self.last_measurement = []
for sensor in sample.values():
for minor_sensor in sensor:
if (minor_sensor.current > 20000):
# Ignore unreasonalbe fan speeds
if (minor_sensor.current > 10000):
continue
self.last_measurement.append(int(minor_sensor.current))

Expand Down

0 comments on commit 9851b46

Please sign in to comment.