renamed config.py.EXAMPLE, and bugfix
This commit is contained in:
parent
f2e27384e2
commit
44351b26c0
6
oven.py
6
oven.py
@ -133,9 +133,9 @@ class TempSensor(threading.Thread):
|
||||
self.oven = oven
|
||||
|
||||
if sensor_available:
|
||||
self.thermocouple = MAX31855(gpio_sensor_cs,
|
||||
gpio_sensor_clock,
|
||||
gpio_sensor_data,
|
||||
self.thermocouple = MAX31855(config.gpio_sensor_cs,
|
||||
config.gpio_sensor_clock,
|
||||
config.gpio_sensor_data,
|
||||
"c"
|
||||
)
|
||||
|
||||
|
||||
@ -8,7 +8,7 @@ try:
|
||||
import config
|
||||
except:
|
||||
print "Could not import config file."
|
||||
print "Copy config.pyEXAMPLE to config.py and adapt it for your setup."
|
||||
print "Copy config.py.EXAMPLE to config.py and adapt it for your setup."
|
||||
exit(1)
|
||||
|
||||
logging.basicConfig(level = config.log_level, format = config.log_format)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user