Embedded TCP/IP stack  4.7.0

◆ FNET_CFG_SERIAL_PRINTF_N_TO_RN

#define FNET_CFG_SERIAL_PRINTF_N_TO_RN   (1)

Automatic replacing of all line feeds ("\n") inside the format string to CR LF ("\r\n") by fnet_(s)printf() functions:

  • 1 = is enabled (Deafault value, to save some ROM).
  • 0 = is disabled.

    To save some bytes from all the hard coded strings the fnet_(s)printf() functions will expand all line feeds ("\n") inside the format string to CR LF ("\r\n"). So do not use "\r\n" in the format string - it will be expanded to "\r\r\n". It is save to add it via a parameter though, e.g. fnet_printf("%s", "\r\n");

Definition at line 51 of file fnet_serial_config.h.


© 2005-2020 by Andrej Butok. http://fnet.sourceforge.net