From 28655e5ea2b2bf28a5052b4c3b94f1abb3714e25 Mon Sep 17 00:00:00 2001 From: Lucas Oldfield Date: Tue, 7 Aug 2018 21:23:45 +1000 Subject: [PATCH] Adding max31850 support --- lib/oven.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/oven.py b/lib/oven.py index c5097ab..9720e35 100644 --- a/lib/oven.py +++ b/lib/oven.py @@ -10,9 +10,12 @@ log = logging.getLogger(__name__) try: - if config.max31855 + config.max6675 + config.max31855spi > 1: + if config.max31855 + config.max6675 + config.max31855spi + config.max31850 > 1: log.error("choose (only) one converter IC") exit() + if config.max31850: + from max31850 import MAX31850 + log.info("import MAX31850") if config.max31855: from max31855 import MAX31855, MAX31855Error log.info("import MAX31855")