Skip to content

Commit

Permalink
Always retry sends
Browse files Browse the repository at this point in the history
  • Loading branch information
puddly committed Sep 26, 2023
1 parent 58f8a80 commit 82a54c7
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 @@ -776,9 +776,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 82a54c7

Please sign in to comment.