Skip to content

Commit fa68d43

Browse files
committed
fixed indentation
1 parent 4378689 commit fa68d43

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

targets/TARGET_STM/TARGET_STM32L0/analogin_device.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,13 @@ uint16_t adc_read(analogin_t *obj)
175175
HAL_ADC_Start(&obj->handle); // Start conversion
176176

177177
// Wait end of conversion and get value
178-
uint16_t adcValue = 0;
178+
uint16_t adcValue = 0;
179179
if (HAL_ADC_PollForConversion(&obj->handle, 10) == HAL_OK) {
180180
adcValue = (uint16_t)HAL_ADC_GetValue(&obj->handle);
181-
}
182-
sConfig.Rank = ADC_RANK_NONE;
183-
HAL_ADC_ConfigChannel(&obj->handle, &sConfig);
184-
return adcValue;
181+
}
182+
sConfig.Rank = ADC_RANK_NONE;
183+
HAL_ADC_ConfigChannel(&obj->handle, &sConfig);
184+
return adcValue;
185185
}
186186

187187
#endif

0 commit comments

Comments
 (0)