x735-v2.5 icon indicating copy to clipboard operation
x735-v2.5 copied to clipboard

Improve fan control

Open molhamalnasr opened this issue 2 years ago • 0 comments

in this Branch, I improved the fan control and the speed reader by doing the following:

  • add: strip() to remove any leading or trailing white space
  • Using constants and boolean for more clarity
  • replacing if..elif..else with for loop
  • Use the logging module to log events and errors instead of printing to the console. This will make it easier to diagnose issues and track events when the code is running in a larger application
  • This will help to prevent accidental modification of these variables in other parts of the code and make the code more modular

molhamalnasr avatar Feb 19 '23 19:02 molhamalnasr