Skip to content

Commit 4683e48

Browse files
committed
Further formatting changes related to whitespaces
1 parent ead5751 commit 4683e48

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ports/espressif/common-hal/analogbufio/BufferedIn.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ void common_hal_analogbufio_bufferedin_construct(analogbufio_bufferedin_obj_t *s
9595

9696
#if defined(CONFIG_IDF_TARGET_ESP32)
9797
if (pin->adc_index != ADC_UNIT_1) {
98-
/*
98+
/*
9999
* ESP32 only supports ADC1 unit
100100
* https://www.espressif.com/sites/default/files/documentation/esp32_technical_reference_manual_en.pdf
101101
* Table 29-3
@@ -205,7 +205,7 @@ static bool check_valid_data(const adc_digi_output_data_t *data) {
205205
return false;
206206
}
207207
} else {
208-
if ( convert_mode == ADC_CONV_SINGLE_UNIT_1 ) {
208+
if (convert_mode == ADC_CONV_SINGLE_UNIT_1) {
209209
unit = 0;
210210
} else {
211211
unit = 1;
@@ -236,12 +236,12 @@ uint32_t common_hal_analogbufio_bufferedin_readinto(analogbufio_bufferedin_obj_t
236236
mp_printf(&mp_plat_print,"Required bytes: %d\n",len);
237237
#endif // DEBUG_ANALOGBUFIO
238238

239-
while(captured_bytes < len) {
239+
while (captured_bytes < len) {
240240
ret_num = 0;
241241
ret = adc_digi_read_bytes(result, NUM_SAMPLES_PER_INTERRUPT, &ret_num, ADC_READ_TIMEOUT_MS);
242242

243243
if (ret == ESP_OK) {
244-
for(uint32_t i=0; i<ret_num; i+=ADC_RESULT_BYTE) {
244+
for (uint32_t i=0; i<ret_num; i+=ADC_RESULT_BYTE) {
245245
adc_digi_output_data_t *pResult = (adc_digi_output_data_t *) (void *)&result[i];
246246
if (check_valid_data(pResult)) {
247247
if (captured_bytes < len) {

0 commit comments

Comments
 (0)