-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
fix at32 serial bidir pp od init and smart audio #13764
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
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! |
src/main/io/vtx_smartaudio.c
Outdated
@@ -497,6 +497,7 @@ static void saReceiveFrame(uint8_t c) | |||
static void saSendFrame(uint8_t *buf, int len) | |||
{ | |||
if (!IS_RC_MODE_ACTIVE(BOXVTXCONTROLDISABLE)) { | |||
#ifndef AT32F4 |
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.
#ifndef AT32F4 | |
#ifndef AT32F4 |
Also, at this level, AT32F4 should be identical to STM32 cpus; This will result in different protocol and AT32F4.
It almost looks like there are different bugs in smartaudio, dependent on version, and each developer adjusts his own CPU version accordingly ...
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.
i understand that the STM32 chips will always pull the line high before transmitting a byte, making the this dummy byte necessary. i could be wrong tho, maybe @freasy can elaborate.
include fix for F4 and G4 as well
Applied formatting suggestions, squashed and rebased. |
include fix for F4 and G4 as well Co-authored-by: Eike Ahmels <ea@weslink.de>
originally submitted as #13663,
cherry picked the original commits on top of master.