Skip to content

Commit

Permalink
Always retry sends (#585)
Browse files Browse the repository at this point in the history
  • Loading branch information
puddly authored Sep 26, 2023
1 parent 0fab7de commit 251a1de
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bellows/zigbee/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -775,9 +775,7 @@ async def send_packet(self, packet: zigpy.types.ZigbeePacket) -> None:
aps_frame.sourceEndpoint = t.uint8_t(packet.src_ep)
aps_frame.destinationEndpoint = t.uint8_t(packet.dst_ep or 0)
aps_frame.options = t.EmberApsOption.APS_OPTION_NONE

if zigpy.types.TransmitOptions.ACK in packet.tx_options:
aps_frame.options |= t.EmberApsOption.APS_OPTION_RETRY
aps_frame.options |= t.EmberApsOption.APS_OPTION_RETRY

if packet.dst.addr_mode == zigpy.types.AddrMode.Group:
aps_frame.groupId = t.uint16_t(packet.dst.address)
Expand Down

0 comments on commit 251a1de

Please sign in to comment.