From 240cf176db41d86036b6dc1a70b45c1bd9a0eae7 Mon Sep 17 00:00:00 2001 From: Melissa LeBlanc-Williams Date: Mon, 2 Dec 2019 10:41:21 -0800 Subject: [PATCH] Removed variable used for testing --- src/busio.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/busio.py b/src/busio.py index aa9b2e1..ede1e6c 100755 --- a/src/busio.py +++ b/src/busio.py @@ -28,12 +28,10 @@ class I2C(Lockable): else: from machine import I2C as _I2C from microcontroller.pin import i2cPorts - busnum = None for portId, portScl, portSda in i2cPorts: try: if scl == portScl and sda == portSda: self._i2c = _I2C(portId, mode=_I2C.MASTER, baudrate=frequency) - busnum = portId break except RuntimeError: pass -- 2.49.0