mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 06:39:01 +08:00
Additional cosmetic changes from review of last PR
This commit is contained in:
@@ -1759,15 +1759,15 @@ struct adc_dev_s *stm32_adc_initialize(int intf, FAR const uint8_t *chanlist,
|
||||
|
||||
/* Configure the selected ADC */
|
||||
|
||||
priv = (FAR struct stm32_dev_s *)dev->ad_priv;
|
||||
|
||||
priv->cb = NULL;
|
||||
priv = (FAR struct stm32_dev_s *)dev->ad_priv;
|
||||
priv->cb = NULL;
|
||||
|
||||
DEBUGASSERT(cchannels <= ADC_MAX_SAMPLES);
|
||||
if (cchannels > ADC_MAX_SAMPLES)
|
||||
{
|
||||
cchannels = ADC_MAX_SAMPLES;
|
||||
}
|
||||
if (cchannels > ADC_MAX_SAMPLES)
|
||||
{
|
||||
cchannels = ADC_MAX_SAMPLES;
|
||||
}
|
||||
|
||||
priv->cchannels = cchannels;
|
||||
|
||||
memcpy(priv->chanlist, chanlist, cchannels);
|
||||
|
||||
Reference in New Issue
Block a user