From 784208543448e8022b185a82015e107f04960738 Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 26 Apr 2021 00:37:36 +1000 Subject: [PATCH] tests/multi_bluetooth/ble_gap_advertise.py: Allow to work without set. Signed-off-by: Damien George --- tests/multi_bluetooth/ble_gap_advertise.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/multi_bluetooth/ble_gap_advertise.py b/tests/multi_bluetooth/ble_gap_advertise.py index bb1ef94a71..67c8bf4593 100644 --- a/tests/multi_bluetooth/ble_gap_advertise.py +++ b/tests/multi_bluetooth/ble_gap_advertise.py @@ -30,14 +30,14 @@ def instance0(): def instance1(): multitest.next() finished = False - adv_types = set() + adv_types = {} adv_data = None def irq(ev, data): nonlocal finished, adv_types, adv_data if ev == _IRQ_SCAN_RESULT: if data[0] == BDADDR[0] and data[1] == BDADDR[1]: - adv_types.add(data[2]) + adv_types[data[2]] = True if adv_data is None: adv_data = bytes(data[4]) else: