From cc50d4a735761e16e6952f7b4e19afcc2a22ac68 Mon Sep 17 00:00:00 2001 From: Simon Albinsson Date: Thu, 12 Apr 2018 21:52:26 +0000 Subject: [PATCH] Fixes bug due to accidental line dupplication --- sgp30/sgp30.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/sgp30/sgp30.py b/sgp30/sgp30.py index 23fc51b..19e520f 100644 --- a/sgp30/sgp30.py +++ b/sgp30/sgp30.py @@ -47,8 +47,6 @@ class Sgp30(): else: read = i2c_msg.read(self._device_addr,cmd.replylen) self._bus.i2c_rdwr(write) - self._bus.i2c_rdwr(write) - self._bus.i2c_rdwr(read) self._bus.i2c_rdwr(read) r = list(read) a = zip(r[0::3],r[1::3])