renamed config.py.EXAMPLE, and bugfix

This commit is contained in:
Sebastian Steuer 2013-11-30 01:45:08 +01:00
parent f2e27384e2
commit 44351b26c0
3 changed files with 4 additions and 4 deletions

View File

@ -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"
)

View File

@ -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)