Skip to content

Commit

Permalink
Fix check_conservation_mode() function in ideapad_laptop.py (#766)
Browse files Browse the repository at this point in the history
  • Loading branch information
Geffo029 authored Aug 23, 2024
1 parent e2d6050 commit 7925c21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auto_cpufreq/battery_scripts/ideapad_laptop.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7925c21

Please sign in to comment.