Skip to content

Commit

Permalink
Fix incorrect buffer assignment in 1-wire low-level code (#1142)
Browse files Browse the repository at this point in the history
  • Loading branch information
sharmavishnu authored and josesimoes committed Jan 8, 2019
1 parent cadf57c commit a672af7
Showing 1 changed file with 7 additions and 7 deletions.
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

0 comments on commit a672af7

Please sign in to comment.