mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 11:52:44 +01:00
6d874c2882
The parameters for parity and stop bits was confused, resulting in the following compilation error with GCC 12.2.0: /home/maribu/Repos/software/RIOT/cpu/esp_common/periph/uart.c: In function '_uart_config': /home/maribu/Repos/software/RIOT/cpu/esp_common/periph/uart.c:394:61: error: implicit conversion from 'uart_stop_bits_t' to 'uart_parity_t' -Werror=enum-conversion] 394 | if (_uart_set_mode(uart, _uarts[uart].data, _uarts[uart].stop, | ~~~~~~~~~~~~^~~~~ /home/maribu/Repos/software/RIOT/cpu/esp_common/periph/uart.c:395:42: error: implicit conversion from 'uart_parity_t' to 'uart_stop_bits_t' -Werror=enum-conversion] 395 | _uarts[uart].parity) != UART_OK) { | ~~~~~~~~~~~~^~~~~~~ cc1: all warnings being treated as errors This swaps the parameters. |
||
---|---|---|
.. | ||
flash.c | ||
i2c_sw.c | ||
Kconfig | ||
Makefile | ||
uart.c |