summaryrefslogtreecommitdiff
path: root/tests/pyb/pyb1.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-06-08 13:00:27 +1000
committerDamien George <damien.p.george@gmail.com>2018-06-08 13:00:27 +1000
commita12d046c42dc7e786563f8247ed8aa8ac6e14a47 (patch)
treef8adf0894fa2548dce2cbcad6e5aecbcfa2bca40 /tests/pyb/pyb1.py
parent190c7dba89dbb1165f682b56f278e3bc9715680c (diff)
tests/pyb: Make i2c and pyb1 pyboard tests run again.
For i2c.py: the accelerometer now uses the new I2C driver so need to explicitly init the legacy i2c object to get the test working. For pyb1.py: the legacy pyb.hid() call will crash if the USB_HID object is not initialised.
Diffstat (limited to 'tests/pyb/pyb1.py')
-rw-r--r--tests/pyb/pyb1.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/pyb/pyb1.py b/tests/pyb/pyb1.py
index 184acbdc4..443722ca8 100644
--- a/tests/pyb/pyb1.py
+++ b/tests/pyb/pyb1.py
@@ -29,8 +29,6 @@ pyb.enable_irq()
print(pyb.have_cdc())
-pyb.hid((0, 0, 0, 0)) # won't do anything
-
pyb.sync()
print(len(pyb.unique_id()))