Skip to content

Commit

Permalink
AP_VideoTX: Tramp: Add half-duplex to port config
Browse files Browse the repository at this point in the history
Tramp is half-duplex, so this should be set
automatically like already done for SmartAudio.

Already set pull-down for consistency with
SmartAudio.
  • Loading branch information
menschel committed Dec 5, 2024
1 parent 9a5f81a commit b9b5033
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions libraries/AP_VideoTX/AP_Tramp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -532,8 +532,11 @@ bool AP_Tramp::init(void)
port->configure_parity(0);
port->set_stop_bits(1);
port->set_flow_control(AP_HAL::UARTDriver::FLOW_CONTROL_DISABLE);
port->set_options((port->get_options() & ~AP_HAL::UARTDriver::OPTION_RXINV));

port->set_options((port->get_options() & ~AP_HAL::UARTDriver::OPTION_RXINV)
| AP_HAL::UARTDriver::OPTION_HDPLEX
| AP_HAL::UARTDriver::OPTION_PULLDOWN_TX
| AP_HAL::UARTDriver::OPTION_PULLDOWN_RX
);
port->begin(AP_TRAMP_UART_BAUD, AP_TRAMP_UART_BUFSIZE_RX, AP_TRAMP_UART_BUFSIZE_TX);
debug("port opened");

Expand Down

0 comments on commit b9b5033

Please sign in to comment.