diff options
Diffstat (limited to 'tests/wipy/os.py')
-rw-r--r-- | tests/wipy/os.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/wipy/os.py b/tests/wipy/os.py index 796d4699e..cacd10958 100644 --- a/tests/wipy/os.py +++ b/tests/wipy/os.py @@ -2,14 +2,13 @@ os module test for the CC3200 based boards ''' -from pyb import SD -import pyb +from machine import SD import os -machine = os.uname().machine -if 'LaunchPad' in machine: +mch = os.uname().machine +if 'LaunchPad' in mch: sd_pins = ('GP16', 'GP17', 'GP15') -elif 'WiPy' in machine: +elif 'WiPy' in mch: sd_pins = ('GP10', 'GP11', 'GP15') else: raise Exception('Board not supported!') |