Skip to content

Fix incorrect buffer assignment in 1-wire low-level code #1142

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

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -128,19 +128,19 @@ void oneWire_lld_start() {
ConfigPins_UART1();
ONEWIRED1.UartDriver = &UARTD1;
ONEWIRED1.TxBuffer = Uart1_TxBuffer;
ONEWIRED1.RxBuffer = Uart1_TxBuffer;
ONEWIRED1.RxBuffer = Uart1_RxBuffer;
#endif
#if NF_ONEWIRE_STM32_UART_USE_USART2
ConfigPins_UART2();
ONEWIRED1.UartDriver = &UARTD2;
ONEWIRED1.TxBuffer = Uart2_TxBuffer;
ONEWIRED1.RxBuffer = Uart2_TxBuffer;
ONEWIRED1.RxBuffer = Uart2_RxBuffer;
#endif
#if NF_ONEWIRE_STM32_UART_USE_USART3
ConfigPins_UART3();
ONEWIRED1.UartDriver = &UARTD3;
ONEWIRED1.TxBuffer = Uart3_TxBuffer;
ONEWIRED1.RxBuffer = Uart3_TxBuffer;
ONEWIRED1.RxBuffer = Uart3_RxBuffer;
#endif
#if NF_ONEWIRE_STM32_UART_USE_USART4
ConfigPins_UART4();
Expand All @@ -152,25 +152,25 @@ void oneWire_lld_start() {
ConfigPins_UART5();
ONEWIRED1.UartDriver = &UARTD5;
ONEWIRED1.TxBuffer = Uart5_TxBuffer;
ONEWIRED1.RxBuffer = Uart5_TxBuffer;
ONEWIRED1.RxBuffer = Uart5_RxBuffer;
#endif
#if NF_ONEWIRE_STM32_UART_USE_USART6
ConfigPins_UART6();
ONEWIRED1.UartDriver = &UARTD6;
ONEWIRED1.TxBuffer = Uart6_TxBuffer;
ONEWIRED1.RxBuffer = Uart6_TxBuffer;
ONEWIRED1.RxBuffer = Uart6_RxBuffer;
#endif
#if NF_ONEWIRE_STM32_UART_USE_USART7
ConfigPins_UART7();
ONEWIRED1.UartDriver = &UARTD7;
ONEWIRED1.TxBuffer = Uart7_TxBuffer;
ONEWIRED1.RxBuffer = Uart7_TxBuffer;
ONEWIRED1.RxBuffer = Uart7_RxBuffer;
#endif
#if NF_ONEWIRE_STM32_UART_USE_USART8
ConfigPins_UART8();
ONEWIRED1.UartDriver = &UARTD8;
ONEWIRED1.TxBuffer = Uart8_TxBuffer;
ONEWIRED1.RxBuffer = Uart8_TxBuffer;
ONEWIRED1.RxBuffer = Uart8_RxBuffer;
#endif

uartSetSpeed(9600);
Expand Down