printf \r no output in ESP-IDF Monitor
Posted: Tue Mar 22, 2022 10:10 am
Hello,
Using the ADC DMA example (https://github.com/espressif/esp-idf/tr ... c/dma_read)
I am trying to get the output (within the ESP-IDF Monitor) to display on the same line i.e. no output on a new line.
I have tried using the \r carriage return format specifier, but output happens.
Thank you in advance
George Stefanovski
Using the ADC DMA example (https://github.com/espressif/esp-idf/tr ... c/dma_read)
I am trying to get the output (within the ESP-IDF Monitor) to display on the same line i.e. no output on a new line.
I have tried using the \r carriage return format specifier, but output happens.
- for (int i = 0; i < ret_num; i += ADC_RESULT_BYTE)
- {
- adc_digi_output_data_t *p = (void *)&result[i];
- printf("value %d\r", p->type1.data);
- fflush(stdout)
Thank you in advance
George Stefanovski