removed dodgy .
This commit is contained in:
@@ -19,8 +19,8 @@
|
|||||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
# THE SOFTWARE.
|
# THE SOFTWARE.
|
||||||
import .logging
|
import logging
|
||||||
import .subprocess
|
import subprocess
|
||||||
|
|
||||||
import .Platform as Platform
|
import .Platform as Platform
|
||||||
|
|
||||||
@@ -93,7 +93,7 @@ class Device(object):
|
|||||||
self._address = address
|
self._address = address
|
||||||
if i2c_interface is None:
|
if i2c_interface is None:
|
||||||
# Use pure python I2C interface if none is specified.
|
# Use pure python I2C interface if none is specified.
|
||||||
import .smbus
|
import smbus
|
||||||
self._bus = smbus.SMBus(busnum)
|
self._bus = smbus.SMBus(busnum)
|
||||||
else:
|
else:
|
||||||
# Otherwise use the provided class to create an smbus interface.
|
# Otherwise use the provided class to create an smbus interface.
|
||||||
|
|||||||
Reference in New Issue
Block a user