From db2bdad8a2ed0814a64d0859fa6ea435a110d304 Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 2 May 2018 15:25:37 +1000 Subject: tests/pyb: Update tests to run correctly on PYBv1.0. In adcall.py the pyb module may not be imported, so use ADCAll directly. In dac.py the DAC object now prints more info, so update .exp file. In spi.py the SPI should be deinitialised upon exit, so the test can run a second time correctly. --- tests/pyb/spi.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/pyb/spi.py') diff --git a/tests/pyb/spi.py b/tests/pyb/spi.py index b7a905d78..88cc975bb 100644 --- a/tests/pyb/spi.py +++ b/tests/pyb/spi.py @@ -29,3 +29,5 @@ spi.init(SPI.MASTER) spi.send(1, timeout=100) print(spi.recv(1, timeout=100)) print(spi.send_recv(1, timeout=100)) + +spi.deinit() -- cgit v1.2.3