Skip to content

Commit

Permalink
Merge branch 'fix-for-adc-continious-receiver' into 'master'
Browse files Browse the repository at this point in the history
adc: update continuous read example output type (PR11347)

Closes IDFGH-10071

See merge request espressif/esp-idf!23643
  • Loading branch information
Icarus113 committed May 9, 2023
2 parents 24525c3 + 9d1747d commit b1f7fbd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ void app_main(void)
if (ret == ESP_OK) {
ESP_LOGI("TASK", "ret is %x, ret_num is %"PRIu32" bytes", ret, ret_num);
for (int i = 0; i < ret_num; i += SOC_ADC_DIGI_RESULT_BYTES) {
adc_digi_output_data_t *p = (void*)&result[i];
adc_digi_output_data_t *p = (adc_digi_output_data_t*)&result[i];
uint32_t chan_num = EXAMPLE_ADC_GET_CHANNEL(p);
uint32_t data = EXAMPLE_ADC_GET_DATA(p);
/* Check the channel number validation, the data is invalid if the channel num exceed the maximum channel */
Expand Down

0 comments on commit b1f7fbd

Please sign in to comment.