From 3d7b1431c882eeb58157ce7d16da221bbf3f6c93 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Wed, 10 Mar 2021 22:49:56 +0200 Subject: [PATCH] Remove broken import from smbus --- .gitignore | 2 ++ sgp30/sgp30.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index c9b568f..9bb379e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ *.pyc *.swp + +.idea/ diff --git a/sgp30/sgp30.py b/sgp30/sgp30.py index 601763a..e5b9092 100644 --- a/sgp30/sgp30.py +++ b/sgp30/sgp30.py @@ -1,5 +1,5 @@ import smbus2 -from smbus2 import SMBusWrapper, SMBus, i2c_msg +from smbus2 import SMBus, i2c_msg from collections import namedtuple from functools import partial from time import sleep, asctime,time @@ -116,7 +116,7 @@ def i2c_geral_call(self): def main(): - with SMBusWrapper(1) as bus: + with SMBus(1) as bus: sgp=Sgp30(bus,baseline_filename=BASELINE_FILENAME+".TESTING") print("resetting all i2c devices") sgp.i2c_geral_call()