Fixed some bugs in MicroPython Bluetooth support. mpy_network

Wed, 08 Mar 2023 17:40:14 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 08 Mar 2023 17:40:14 +0100
branch
mpy_network
changeset 9858
6518c336fcd3
parent 9857
0122ae72618d
child 9859
829c1edbf253

Fixed some bugs in MicroPython Bluetooth support.

src/eric7/MicroPython/BluetoothDialogs/BluetoothAdvertisement.py file | annotate | diff | comparison | revisions
src/eric7/MicroPython/Devices/CircuitPythonDevices.py file | annotate | diff | comparison | revisions
--- a/src/eric7/MicroPython/BluetoothDialogs/BluetoothAdvertisement.py	Wed Mar 08 14:25:24 2023 +0100
+++ b/src/eric7/MicroPython/BluetoothDialogs/BluetoothAdvertisement.py	Wed Mar 08 17:40:14 2023 +0100
@@ -230,7 +230,7 @@
                 continue
 
             m = struct.unpack("<H", u[0:2])[0]
-            if filter is None or m == filterId:
+            if filterId is None or m == filterId:
                 name = ManufacturerId.get(m, "") if withName else None
                 result.append((m, u[2:], name))
         return result
--- a/src/eric7/MicroPython/Devices/CircuitPythonDevices.py	Wed Mar 08 14:25:24 2023 +0100
+++ b/src/eric7/MicroPython/Devices/CircuitPythonDevices.py	Wed Mar 08 17:40:14 2023 +0100
@@ -1316,7 +1316,7 @@
     scanResults = a.start_scan(
         buffer_size=1024, extended=True, timeout={0}, minimum_rssi=-100, active=True
     )
-    time.sleep(10)
+    time.sleep({0})
     a.stop_scan()
 
     for res in scanResults:

eric ide

mercurial