Skip to content

Commit 6598e5a

Browse files
committed
sender: fix bad conditions when checking for a received packet
digidotcom#242 Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
1 parent 560f38f commit 6598e5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

digi/xbee/sender.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,9 +469,9 @@ def _packet_received_cb(self, rcv_packet):
469469
# This means successful user data relay requests throw a
470470
# TimeoutException using this method
471471
received_response = (r_f_type == ApiFrameType.TX_STATUS)
472-
elif s_f_type in ApiFrameType.FILE_SYSTEM_REQUEST:
472+
elif s_f_type == ApiFrameType.FILE_SYSTEM_REQUEST:
473473
received_response = self._is_valid_fs_response(rcv_packet)
474-
elif s_f_type in ApiFrameType.REMOTE_FILE_SYSTEM_REQUEST:
474+
elif s_f_type == ApiFrameType.REMOTE_FILE_SYSTEM_REQUEST:
475475
# A remote file system request may receive 2 frames: the remote file
476476
# system response and a transmit status
477477
received_response = self._is_valid_remote_fs_response(rcv_packet)

0 commit comments

Comments
 (0)