From c92e6a45ebba4d41c2d0d891e07f94a81d2f601f Mon Sep 17 00:00:00 2001 From: Daniel Campora Date: Sun, 27 Sep 2015 13:45:48 +0200 Subject: cc3200: Rename pyb module to machine. --- tests/wipy/spi.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/wipy/spi.py') diff --git a/tests/wipy/spi.py b/tests/wipy/spi.py index c5f845e0e5..6bd7aabce1 100644 --- a/tests/wipy/spi.py +++ b/tests/wipy/spi.py @@ -2,13 +2,13 @@ SPI test for the CC3200 based boards. ''' -from pyb import SPI +from machine import SPI import os -machine = os.uname().machine -if 'LaunchPad' in machine: +mch = os.uname().machine +if 'LaunchPad' in mch: spi_pins = ('GP14', 'GP16', 'GP30') -elif 'WiPy' in machine: +elif 'WiPy' in mch: spi_pins = ('GP14', 'GP16', 'GP30') else: raise Exception('Board not supported!') -- cgit v1.2.3