Embedded TCP/IP stack: FNET_CFG_SERIAL_PRINTF_N_TO_RN

FNET

#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 52 of file fnet_serial_config.h.


© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net