fix a bug or two

pull/1/head
Andrew Malota 2017-11-30 18:58:47 -06:00
rodzic 87778d8c2b
commit e95a61fe3e
2 zmienionych plików z 6 dodań i 3 usunięć

Wyświetl plik

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

Wyświetl plik

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