Browse Source

Parse Disable BDPROCHOT option

Pedro Nariyoshi 4 years ago
parent
commit
b5e52c03f4
1 changed files with 4 additions and 0 deletions
  1. 4 0
      lenovo_fix.py

+ 4 - 0
lenovo_fix.py

@@ -379,6 +379,10 @@ def load_config():
                 value = config.set(power_source, option, str(max(0.001, value)))
             elif option == 'Update_Rate_s':
                 fatal('The mandatory "Update_Rate_s" parameter is missing.')
+        for option in ('Disable_BDPROCHOT'):
+            value = config.boolean(power_source, option, fallback=None)
+            if value is None:
+                value = config.set(power_source, option, 0)
 
         trip_temp = config.getfloat(power_source, 'Trip_Temp_C', fallback=None)
         if trip_temp is not None: