From 46ed1b873dc6f56ca3b1b87672a39f0b3461858f Mon Sep 17 00:00:00 2001 From: hummypkg Date: Sat, 25 Feb 2017 23:36:08 +0000 Subject: [PATCH] fix typos --- modules/hdc1000.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/hdc1000.py b/modules/hdc1000.py index 74b3f70..e4a97ad 100644 --- a/modules/hdc1000.py +++ b/modules/hdc1000.py @@ -4,7 +4,7 @@ from pprint import pprint try: import smbus2 as smbus -except ModuleNotFoundError: +except ImportError: import smbus I2CADDR = 0x40 @@ -42,7 +42,7 @@ def reset(): CONFIG_TRES_14 | CONFIG_HRES_14 ) - bus.write_word_data(I2CADDR, CONFIG, config) + bus.write_word_data(I2CADDR, CONFIG_REG, config) def triggerMeasurements(): bus.write_byte(I2CADDR, TEMP_REG)