Skip to content

Commit

Permalink
chore: apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Ernst Klamer <[email protected]>
  • Loading branch information
thecode and Ernst79 committed Mar 2, 2024
1 parent cfad968 commit 8a23fbd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bthome_ble/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,10 +379,10 @@ def _skip_old_or_duplicated_advertisement(
Detect duplicated or older packets
Devices may send duplicated advertisements or advertisements order can change
when passthing through a proxy. If more than 4 seconds pass since the last
when passing through a proxy. If more than 4 seconds pass since the last
advertisement assume it is a new packet even if it has the same packet id.
Packet id rollover at 255 to 0, validate that the difference between last packet
and new packet is less than 64. This assumes device is not sending more than 16
Packet id rollover at 255 to 0, validate that the difference between last packet id
and new packet id is less than 64. This assumes device is not sending more than 16
advertisements per second.
"""
last_packet_id = self.packet_id
Expand Down

0 comments on commit 8a23fbd

Please sign in to comment.