Skip to content

Commit 7925c21

Browse files
authored
Fix check_conservation_mode() function in ideapad_laptop.py (#766)
1 parent e2d6050 commit 7925c21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auto_cpufreq/battery_scripts/ideapad_laptop.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def conservation_mode(value):
2424

2525
def check_conservation_mode():
2626
try:
27-
value = check_output(["cat", CONSERVATION_MODE_FILE], text=True)
27+
value = check_output(["cat", CONSERVATION_MODE_FILE], text=True).rstrip()
2828
if value == "1": return True
2929
elif value == "0": return False
3030
else:

0 commit comments

Comments
 (0)