[update] fix scan error

This commit is contained in:
Roy
2023-04-17 10:27:28 +08:00
parent 5033381e64
commit 001905ec96
+3
View File
@@ -1995,6 +1995,9 @@ class CC2650SingleMasterCentralDevice(CC2650MasterDevice, Synchronized):
# self._interface.flush()
return False
if len(scan_response) <= 1:
print('len(scan) <= 1, scan_response:', list(scan_response))
return False
# instruction format:
# ins[0]: get_scan_response = 0x04
# ins[1]: number of scanned device=0; a certain device = device_id (could be 1~8)