Skip to content

Commit

Permalink
drivers: adc: lmp90xxx: do not exit acquisition thread on error
Browse files Browse the repository at this point in the history
Keep the acquisition thread running even if an ADC reading failed.

Signed-off-by: Henrik Brix Andersen <[email protected]>
  • Loading branch information
henrikbrixandersen authored and galak committed Mar 28, 2020
1 parent 0ff2bcf commit fce6a8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/adc/adc_lmp90xxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ static void lmp90xxx_acquisition_thread(struct device *dev)
if (err) {
LOG_ERR("failed to read ADC DOUT (err %d)", err);
adc_context_complete(&data->ctx, err);
return;
continue;
}

if (IS_ENABLED(CONFIG_ADC_LMP90XXX_CRC)) {
Expand All @@ -672,7 +672,7 @@ static void lmp90xxx_acquisition_thread(struct device *dev)
LOG_ERR("CRC mismatch (0x%02x vs. 0x%02x)",
buf[3], crc);
adc_context_complete(&data->ctx, -EIO);
return;
continue;
}
}

Expand Down

0 comments on commit fce6a8b

Please sign in to comment.