rstrouse / relayEquipmentManager

A hardware controller for GPIO, I2c, SPI, and generic devices.
GNU General Public License v3.0
38 stars 19 forks source link

Updated CPU temperature reading in SequentIO class to fallback to OS thermal zones #73

Closed sberkovitz closed 4 months ago

sberkovitz commented 5 months ago

Updated CPU temperature reading in SequentIO class to fallback to OS thermal zones. This changes the behavior so the temp is read from from /sys/class/thermal/thermal_zone0/temp if unavailable on the I2C bus. I don't know if this is a change in the latest version of the BAS card, or a change somewhere else, but this modification preserves the existing functionality and only falls back if the originally returned value is undefined or 0.

rstrouse commented 5 months ago

I will get this merged next week. I have a few things on my plate before this so bear with me.