YoCodingMonster / OpenFreezeCenter-Lite

OpenFreezeCenter-Lite allows users to read/write and control the EC of laptops, specially MSI!
MIT License
15 stars 3 forks source link

Fix crash when setting/changing fan mode #6

Open Sparronator9999 opened 4 months ago

Sparronator9999 commented 4 months ago

This PR fixes the following crash that occurs when attempting to set the fan mode:

Traceback (most recent call last):
  File "[path/to/OFC]/OpenFreezeCenter-Lite.py", line 157, in <module>
    function()
  File "[path/to/OFC]/OpenFreezeCenter-Lite.py", line 117, in function
    set_fan_mode()
  File "[path/to/OFC]/OpenFreezeCenter-Lite.py", line 67, in set_fan_mode
    config_writer(PROFILE = 1)
TypeError: config_writer() got an unexpected keyword argument 'PROFILE'

by setting config.PROFILE instead of passing it as an argument to config_writer() (which doesn't expect any args).