kopia lustrzana https://github.com/botheredbybees/kilnController
fix a bug or two
rodzic
87778d8c2b
commit
e95a61fe3e
|
@ -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
|
||||
|
||||
|
||||
########################################################################
|
||||
#
|
||||
|
|
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue