Skip to content

Commit

Permalink
Fix mirror for direct udp tx
Browse files Browse the repository at this point in the history
  • Loading branch information
svpcom committed Aug 11, 2023
1 parent f0ef581 commit 260ec41
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wfb_ng/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,10 @@ def init_udp_direct_tx(service_name, cfg, wlans, link_id, ant_sel_f):
fec_timeout=cfg.fec_timeout,
link_id=link_id,
rcv_buf_size=settings.common.tx_rcv_buf_size)
).split() + wlans[0:1] # We don't use TX diversity for direct udp
# due to only one transmitter on the vehichle
).split() + wlans[0:(None if cfg.mirror else 1)]

# Direct udp doesn't support TX diversity - only first card will be used.
# But if mirror mode is enabled it will use all cards.

df = TXProtocol(cmd, 'video tx').start()
log.msg('%s: %s' % (service_name, ' '.join(cmd),))
Expand Down

0 comments on commit 260ec41

Please sign in to comment.