summaryrefslogtreecommitdiff
path: root/tests/wipy/uart.py
diff options
context:
space:
mode:
authorDaniel Campora <daniel@wipy.io>2015-09-25 15:20:07 +0200
committerDaniel Campora <daniel@wipy.io>2015-09-27 11:27:24 +0200
commitef369249cb406758ec1caa9a212478ef69fd7ff0 (patch)
tree3b8e4b4358417693179b488dd79cb3b232538a6b /tests/wipy/uart.py
parenta7261ae059f171e9677a86c59c7f7ed9e24b7ace (diff)
cc3200: Implement support for os.dupterm().
Diffstat (limited to 'tests/wipy/uart.py')
-rw-r--r--tests/wipy/uart.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/wipy/uart.py b/tests/wipy/uart.py
index d700c29d0..a69300d8f 100644
--- a/tests/wipy/uart.py
+++ b/tests/wipy/uart.py
@@ -6,7 +6,6 @@ UART0 and UART1 must be connected together for this test to pass.
from pyb import UART
from pyb import Pin
import os
-import pyb
import time
machine = os.uname().machine
@@ -19,8 +18,8 @@ elif 'WiPy' in machine:
else:
raise Exception('Board not supported!')
-# just in case we have stdio duplicated on any of the uarts
-pyb.repl_uart(None)
+# just in case we have the repl duplicated on any of the uarts
+os.dupterm(None)
for uart_id in uart_id_range:
uart = UART(uart_id, 38400)