Skip to content

Commit

Permalink
fix error when no header requested
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryneedell committed Dec 30, 2018
1 parent 011fdfb commit 8f44d2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_rfm69.py
Expand Up @@ -782,7 +782,7 @@ def receive(self, timeout=0.5, keep_listening=True, with_header=False,
if (rx_filter != _RH_BROADCAST_ADDRESS and packet[0] != _RH_BROADCAST_ADDRESS
and packet[0] != rx_filter):
packet = None
if not with_header: # skip the header if not wanted
elif not with_header: # skip the header if not wanted
packet = packet[4:]

# Listen again if necessary and return the result packet.
Expand Down

0 comments on commit 8f44d2f

Please sign in to comment.