lpadc: a bug fix for the drivers/adc_mcux_lpadc.c
it need to be a && between two condition, to satisfy the comment: only 12 / 13 bit resolution is supported, if FSL_FEATURE_LPADC_HAS_CMDL_MODE is not defined. not using ||. Signed-off-by: Crist Xu <crist.xu@nxp.com>
This commit is contained in:
parent
a5fce2022a
commit
530db5154e
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ static int mcux_lpadc_start_read(const struct device *dev,
|
|||
#else
|
||||
/* If FSL_FEATURE_LPADC_HAS_CMDL_MODE is not defined
|
||||
only 12/13 bit resolution is supported. */
|
||||
if (sequence->resolution != 12 || sequence->resolution != 13) {
|
||||
if (sequence->resolution != 12 && sequence->resolution != 13) {
|
||||
LOG_ERR("Unsupported resolution %d", sequence->resolution);
|
||||
return -ENOTSUP;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue