We can now turn off example-provided putchars

This commit is contained in:
George Oikonomou 2012-12-30 01:22:56 +00:00
parent 326781ef43
commit de251aeb85
2 changed files with 4 additions and 0 deletions

View file

@ -118,6 +118,7 @@ output(void)
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
#if !SLIP_BRIDGE_CONF_NO_PUTCHAR
#undef putchar #undef putchar
int int
putchar(int c) putchar(int c)
@ -145,6 +146,7 @@ putchar(int c)
} }
return c; return c;
} }
#endif
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
const struct uip_fallback_interface rpl_interface = { const struct uip_fallback_interface rpl_interface = {
init, output init, output

View file

@ -169,6 +169,7 @@ init(void)
packet_pos = 0; packet_pos = 0;
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
#if !SLIP_RADIO_CONF_NO_PUTCHAR
#undef putchar #undef putchar
int int
putchar(int c) putchar(int c)
@ -196,6 +197,7 @@ putchar(int c)
} }
return c; return c;
} }
#endif
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
PROCESS(slip_radio_process, "Slip radio process"); PROCESS(slip_radio_process, "Slip radio process");
AUTOSTART_PROCESSES(&slip_radio_process); AUTOSTART_PROCESSES(&slip_radio_process);