if config.max31856:
log.info("init MAX31856")
from max31856 import MAX31856 # CHANGED FROM max31856 import MAX31856, MAX31856Error
software_s = { 'cs': config.gpio_sensor_cs,
'clk': config.gpio_sensor_clock,
'do': config.gpio_sensor_data
}
self.thermocouple = MAX31856(tc_type=config.thermocouple_type,
software_spi = sofware_s,
units = config.temp_scale
)
This is the right declaration I think.