New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle USART TX pulldown #12929
Handle USART TX pulldown #12929
Conversation
Do you want to test this code? You can flash it directly from Betaflight Configurator:
WARNING: It may be unstable. Use only for testing! |
AUTOMERGE: (FAIL)
|
@@ -315,7 +315,7 @@ uartPort_t *serialUART(UARTDevice_e device, uint32_t baudRate, portMode_e mode, | |||
if ((mode & MODE_TX) && txIO) { | |||
IOInit(txIO, OWNER_SERIAL_TX, RESOURCE_INDEX(device)); | |||
|
|||
if ((options & SERIAL_INVERTED) == SERIAL_NOT_INVERTED) { | |||
if (((options & SERIAL_INVERTED) == SERIAL_NOT_INVERTED) && !(options & SERIAL_BIDIR_PP_PD)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It may be better to add new bit to options, signaling that uartTxMonitor
shall be used
Tramp VTX confirmed working |
MSP VTX on BETAFPVF435 with an Avatar 1S VTX confirmed working. Many thanks! |
SA is always unidirectional Only switch AT32 TX line to input when transmission is complete
Tested with S.Bus using Futaba T8FG TX and Redcon FT4X clone FASST S.Bus RX using Revo Nano. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GPS working
ELRS RX working
Tramp VTX working
SA VTX working
SA is always unidirectional Only switch AT32 TX line to input when transmission is complete
SA is always unidirectional Only switch AT32 TX line to input when transmission is complete
#12760 would stall transmission if the TX line was pulled down, but SmartAudio uses a pulldown, do don't use this behaviour under such circumstances.
Also, always configure SmartAudio to be bi-directional.