diff options
Diffstat (limited to 'tests/wipy/reset')
-rw-r--r-- | tests/wipy/reset/reset.py | 7 |
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) |