- make tempSensor Max31865 more robust against reading failures - removed temp offset
12 lines
310 B
Python
12 lines
310 B
Python
|
|
|
|
class TempSensorFactory:
|
|
@staticmethod
|
|
def create(name):
|
|
if "sim" in name:
|
|
from components.sensor.tempSensorSim import TempSensorSim
|
|
return TempSensorSim()
|
|
elif "31865" in name:
|
|
from components.sensor.tempSensor_max31865 import TempSensor_max31865
|
|
return TempSensor_max31865(temp_offset=0)
|