[PATCH] cmd: fix do_adc_single()
Simon Glass
sjg at chromium.org
Tue Jul 5 11:47:19 CEST 2022
On Sun, 3 Jul 2022 at 06:49, Vyacheslav Bocharov <adeep at lexina.in> wrote:
>
> The source code contains an error:
> - argv[2] contains <channel> arg, variable for env_set is in argv[3]
> - number of args is 4
>
> Revert 54d24d72601321f4470c4edf31c6b29adae424a7
> cmd: simplify do_adc_single()
>
> Fixes 9de612ae4ded53f742f5f99929c06d0839471ced
> cmd: adc: Add support for storing ADC result in env variable
> ---
> cmd/adc.c | 9 +++++++--
> 1 file changed, 7 insertions(+), 2 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
This could use some docs in doc/usage/cmd/
More information about the U-Boot
mailing list