We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Since #2701, if UART does not support the rx, tx and data invert warnings are raised about unused variables: Example with STM32F4 target:
.arduino15/packages/STMicroelectronics/hardware/stm32/2.10.1/libraries/SrcWrapper/src/stm32/uart.c: In function 'uart_init': .arduino15/packages/STMicroelectronics/hardware/stm32/2.10.1/libraries/SrcWrapper/src/stm32/uart.c:118:110: warning: unused parameter 'rx_invert' [-Wunused-parameter] 118 | bool uart_init(serial_t *obj, uint32_t baudrate, uint32_t databits, uint32_t parity, uint32_t stopbits, bool rx_invert, bool tx_invert, bool data_invert) | ^ .arduino15/packages/STMicroelectronics/hardware/stm32/2.10.1/libraries/SrcWrapper/src/stm32/uart.c:118:126: warning: unused parameter 'tx_invert' [-Wunused-parameter] 118 | bool uart_init(serial_t *obj, uint32_t baudrate, uint32_t databits, uint32_t parity, uint32_t stopbits, bool rx_invert, bool tx_invert, bool data_invert) | ^ .arduino15/packages/STMicroelectronics/hardware/stm32/2.10.1/libraries/SrcWrapper/src/stm32/uart.c:118:142: warning: unused parameter 'data_invert' [-Wunused-parameter] 118 | bool uart_init(serial_t *obj, uint32_t baudrate, uint32_t databits, uint32_t parity, uint32_t stopbits, bool rx_invert, bool tx_invert, bool data_invert) |
The text was updated successfully, but these errors were encountered:
fix(uart): unused warnings
66b0ca2
Fixes stm32duino#2718. Signed-off-by: Frederic Pillon <[email protected]>
61b4df8
Successfully merging a pull request may close this issue.
Since #2701, if UART does not support the rx, tx and data invert warnings are raised about unused variables:
Example with STM32F4 target:
The text was updated successfully, but these errors were encountered: