i remember we have this theme many times.
i want simple formated print out
Code: Select all
while (1) ets_printf("VAL: %d\r",val);
this was changed / removed:
Code: Select all
Component config -> ESP32-specific config -> Standard-out output adds carriage return before newline
but i get not the result which i need.
here is my setup and code and result:
Code: Select all
Menuconfig CODE Result
------------------------------------------------------
CR \n \r\n
CR \r ----
CR --- ----
LF \n \r\n
LF \r ----
LF --- ----
CRLF \n \r\n
CRLF \r ----
CRLF \r\n \r\n
the declaration ets_printf is only in the header available, the definitation is in the lib
my workaround for this is, to print out without any CR / LF
and send a sign behind
Code: Select all
while (1) {
ets_printf("VAL: %d",val);
uart_tx_one_char('\r');
}
why append ets_printf chars to the output what we not set?
why delete ets_printf chars from the outgoing what we want send?
Unfortunately, ets_printf adds an additional \r for each \n which is not send by user.
this topic has often annoyed me hours, days and weeks in the begin
because the slave is waiting for certain character encoding
but never gets
please, do not delete in the bin_blob_lib chars what we want send.
this is - why i am not a friend to the bin_blob_libs what we can not edit or controll in open soucre.
( annoy me again about it )
rudi