Further formatting changes related to whitespaces

This commit is contained in:
Milind Movasha 2023-02-18 14:40:12 +05:30
parent ead5751803
commit 4683e48337
No known key found for this signature in database
GPG Key ID: 1265EA49D322BCA5
1 changed files with 4 additions and 4 deletions

View File

@ -205,7 +205,7 @@ static bool check_valid_data(const adc_digi_output_data_t *data) {
return false;
}
} else {
if ( convert_mode == ADC_CONV_SINGLE_UNIT_1 ) {
if (convert_mode == ADC_CONV_SINGLE_UNIT_1) {
unit = 0;
} else {
unit = 1;
@ -236,12 +236,12 @@ uint32_t common_hal_analogbufio_bufferedin_readinto(analogbufio_bufferedin_obj_t
mp_printf(&mp_plat_print,"Required bytes: %d\n",len);
#endif // DEBUG_ANALOGBUFIO
while(captured_bytes < len) {
while (captured_bytes < len) {
ret_num = 0;
ret = adc_digi_read_bytes(result, NUM_SAMPLES_PER_INTERRUPT, &ret_num, ADC_READ_TIMEOUT_MS);
if (ret == ESP_OK) {
for(uint32_t i=0; i<ret_num; i+=ADC_RESULT_BYTE) {
for (uint32_t i=0; i<ret_num; i+=ADC_RESULT_BYTE) {
adc_digi_output_data_t *pResult = (adc_digi_output_data_t *) (void *)&result[i];
if (check_valid_data(pResult)) {
if (captured_bytes < len) {