Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tidy up upon quitting controller #25

Open
haphaeu opened this issue Feb 8, 2022 · 0 comments
Open

Tidy up upon quitting controller #25

haphaeu opened this issue Feb 8, 2022 · 0 comments

Comments

@haphaeu
Copy link

haphaeu commented Feb 8, 2022

I've been testing this manually when gaming. Good to keep temperature lower as my default settings prioritize silent run.

However, when the controller quits, eg upon Ctrl-C, the fan is left at the last set speed.

Suggest to tidy up the initial state upon interrupt or any error. For my case, I've added a try .. except KeyboardInterrupt to the controller loop to set pwm1_enable back to 2 (original value in my system).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant