tests/multi_bluetooth: Skip tests when BLE features are unsupported.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2021-03-12 19:50:13 +11:00
parent 2a38d71036
commit e98ff3f08e
4 changed files with 16 additions and 0 deletions

View File

@@ -3,6 +3,10 @@
from micropython import const
import time, machine, bluetooth, random
if not hasattr(bluetooth.BLE, "l2cap_connect"):
print("SKIP")
raise SystemExit
TIMEOUT_MS = 1000
_IRQ_CENTRAL_CONNECT = const(1)