DriftKingTW / Raspberry-Pi-PWM-Fan-Control

Raspberry Pi PWM fan contorl (for Notcua PWM fans)
MIT License
81 stars 33 forks source link

Script eats a lot of CPU #8

Closed Zappelphilipp closed 3 years ago

Zappelphilipp commented 3 years ago

not sure why, but running this script with python2 oder python3 shows me about 13%-21% CPU ussage in htop no matter what refreshrate i configure.

can someone confirm this bug?

DriftKingTW commented 3 years ago

Hi, I've found this issue is caused by the PWM frequency, the library uses kHz not Hz. Already fix in the latest commit, thanks for point it out.