From 9a29cd95de9188eca87380e9539ef702335af185 Mon Sep 17 00:00:00 2001 From: jbruce12000 Date: Tue, 21 Nov 2023 13:39:32 -0500 Subject: [PATCH] checking for attribute in board too --- config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.py b/config.py index 33e133d..ce1e11d 100644 --- a/config.py +++ b/config.py @@ -54,7 +54,7 @@ try: spi_miso = board.D9 #spi Microcomputer In Serial Out spi_cs = board.D5 #spi Chip Select gpio_heat = board.D23 #output that controls relay -except NotImplementedError: +except (NotImplementedError,AttributeError): print("not running on blinka recognized board, probably a simulation") ### Thermocouple Adapter selection: @@ -128,7 +128,7 @@ sim_R_ho_air = 0.05 # K/W " with internal air circulation # if you want simulations to happen faster than real time, this can be # set as high as 1000 to speed simulations up by 1000 times. -sim_speedup_factor = 1 +sim_speedup_factor = 10 ########################################################################