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
Platform target evaluation fix #12904
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)
|
src/main/target/STM32F405/target.h
Outdated
#define USE_UART1 | ||
#define USE_UART2 | ||
#define USE_UART3 | ||
#define USE_UART4 | ||
#define USE_UART5 | ||
#define USE_UART6 | ||
|
||
#define SERIAL_PORT_COUNT (UNIFIED_SERIAL_PORT_COUNT + 6) | ||
#define SERIAL_PORT_COUNT 9 |
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.
Confirming this number is correct? Should it include VCP etc?
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 talked about it with @haslinghuis and I fixed it now.
Edit: It can't be compiled without including those.
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.
As UNIFIED_SERIAL_PORT_COUNT only was defined after being referenced VCP, SOFTSERIAL and LPUART were not included before. It seems to include LPUART.
3858c4b
to
e8f1e4a
Compare
Thanks to @haslinghuis who noticed that UNIFIED_SERIAL_PORT_COUNT was evaluated only after it was used so it might result UNDEFINED. I removed it because it was only used in target.h
Also changed the old Softserial defines. See #11786