summaryrefslogtreecommitdiffstatshomepage
path: root/tests/wipy/reset
diff options
context:
space:
mode:
authorDaniel Campora <daniel@wipy.io>2015-09-27 13:45:48 +0200
committerDaniel Campora <daniel@wipy.io>2015-09-27 16:50:27 +0200
commitc92e6a45ebba4d41c2d0d891e07f94a81d2f601f (patch)
treee861f7bfb70147d7a648cefc4c47c4b8e682f52d /tests/wipy/reset
parent0a7e4fa5cee7dcb6ce060bef37d4eae5e6f06503 (diff)
downloadmicropython-c92e6a45ebba4d41c2d0d891e07f94a81d2f601f.tar.gz
micropython-c92e6a45ebba4d41c2d0d891e07f94a81d2f601f.zip
cc3200: Rename pyb module to machine.
Diffstat (limited to 'tests/wipy/reset')
-rw-r--r--tests/wipy/reset/reset.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/wipy/reset/reset.py b/tests/wipy/reset/reset.py
index c1990a4af3..35a970c673 100644
--- a/tests/wipy/reset/reset.py
+++ b/tests/wipy/reset/reset.py
@@ -4,8 +4,13 @@ This is needed to force the board to reboot
with the default WLAN AP settings
'''
-from pyb import WDT
+from machine import WDT
import time
+import os
+
+mch = os.uname().machine
+if not 'LaunchPad' in mch and not 'WiPy' in mch:
+ raise Exception('Board not supported!')
wdt = WDT(timeout=1000)
print(wdt)