Skip to content
Commit f4356f3b authored by Elisabeth Friedrich's avatar Elisabeth Friedrich Committed by Carles Cufí
Browse files

drivers: lpadc: fix ADC command chaining



When reading multiple ADC channel in parallel, an ADC command chain will be
build. This is similar to a linked list, as every command references the
next command.

Before this patch every ADC command after the first, would always reference
this initial command. So that during execution only two commands (the last
and first) would be executed which resulted in readout of only two analog
values. As Zephyr expected more to come in, the `read_adc` function would
block endlessly.

The patch fixes the behaviour and allows a correct chain to build up.

Signed-off-by: default avatarElisabeth Friedrich <auxsys@flowerpot.me>
parent 5ea3f9a2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment