Skip to content
Commit d45a9a11 authored by Attie Grande's avatar Attie Grande Committed by Carles Cufí
Browse files

drivers: adc: adc_sam0: Fix interpretation of channels



Previously this was expected to be equal to 1 at all times. This doesn't
play well with the sample or other users (e.g: adc_shell). Instead, we
should count the number of active channels in the bitfield, and ensure
that only one is identified.

Signed-off-by: default avatarAttie Grande <attie.grande@argentum-systems.co.uk>
parent f86f6e00
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment