Fix incorrect buffer assignment in 1-wire low-level code #1142
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Corrected assignment of receive buffer to the ONEWIRED driver.
Incorrect assignment of same buffer to both transmit buffer and receive buffer.
Description
Updated code to correctly assign receive buffer array to the receive buffer of the 1-wire driver.
Motivation and Context
TouchReset was returning false, even when device was successfully detected on the 1-wire bus. Upon code inspection, it revealed that there was a minor copy/paste error, where the transmit buffer was assigned to both the receive buffer container and the transmit buffer container of the 1-wire driver structure.
How Has This Been Tested?
Code was tested with UART1 on STM32F401RE Nucleo board.
Screenshots
Types of changes
Checklist:
Signed-off-by: @sharmavishnu