Skip to content
Commit 0cc164e5 authored by Elisabeth Friedrich's avatar Elisabeth Friedrich Committed by Josh Lilly
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.

Fixes #60277

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