diff --git a/config.py.EXAMPLE b/config.py.EXAMPLE index 8c771bd..19e9b0f 100644 --- a/config.py.EXAMPLE +++ b/config.py.EXAMPLE @@ -39,9 +39,9 @@ gpio_door = 18 # max31855 - bitbang SPI interface # max31855spi - kernel SPI interface # max6675 - bitbang SPI interface -max31855 = 0 +max31855 = 1 max6675 = 0 -max31855spi = 1 +max31855spi = 0 ### Thermocouple Connection (using bitbang interfaces) gpio_sensor_cs = 27 @@ -51,6 +51,9 @@ gpio_sensor_data = 17 ### Thermocouple SPI Connection (using adafrut drivers + kernel SPI interface) spi_sensor_chip_id = 0 +### amount of time, in seconds, to wait between reads of the thermocouple +sensor_time_wait = .5 + ######################################################################## # diff --git a/lib/oven.py b/lib/oven.py index c8d7be4..06c6c9d 100644 --- a/lib/oven.py +++ b/lib/oven.py @@ -48,7 +48,7 @@ class Oven (threading.Thread): STATE_IDLE = "IDLE" STATE_RUNNING = "RUNNING" - def __init__(self, simulate=False, time_step=0.5): + def __init__(self, simulate=False, time_step=config.sensor_time_wait): threading.Thread.__init__(self) self.daemon = True self.simulate = simulate