mirror of
https://github.com/AdnanHodzic/auto-cpufreq.git
synced 2025-04-08 17:05:56 +02:00
Fix check_conservation_mode() function in ideapad_laptop.py
This commit is contained in:
parent
e2d605085c
commit
0e1a6f28e1
@ -24,7 +24,7 @@ def conservation_mode(value):
|
||||
|
||||
def check_conservation_mode():
|
||||
try:
|
||||
value = check_output(["cat", CONSERVATION_MODE_FILE], text=True)
|
||||
value = check_output(["cat", CONSERVATION_MODE_FILE], text=True).rstrip()
|
||||
if value == "1": return True
|
||||
elif value == "0": return False
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user