Skip to content

Commit df785b2

Browse files
committed
WIP
1 parent 99e1ad8 commit df785b2

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

adafruit_ble/scanner.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,10 @@ def scan(self, timeout, *, interval=0.1, window=0.1):
7373

7474
class ScanEntry:
7575
"""
76-
Information about a single transmission of data from a BLE device received by a `Scanner`.
76+
Information about an advertising packet from a BLE device received by a `Scanner`.
7777
78-
:param bleio.ScanEntry entry: lower-level ScanEntry from a `bleio.Scanner`.
79-
80-
This constructor would normally only be used by `Scanner`.
78+
:param bleio.ScanEntry entry: lower-level ScanEntry returned from `bleio.Scanner`.
79+
This constructor is normally used only `Scanner`.
8180
"""
8281

8382
def __init__(self, entry):
@@ -96,7 +95,7 @@ def item(self, item_type):
9695
while i < len(adv_bytes):
9796
item_length = adv_bytes[i]
9897
if item_type != adv_bytes[i+1]:
99-
# Type doesn't match: skip to next item
98+
# Type doesn't match: skip to next item.
10099
i += item_length + 1
101100
else:
102101
return adv_bytes[i + 2:i + item_length]

0 commit comments

Comments
 (0)