Ported jn516x slip-bridge to new uip_fallback_interface

This commit is contained in:
Simon Duquennoy 2015-11-10 09:30:36 +01:00
parent dacef46b03
commit 4c52b87ac1

View file

@ -107,7 +107,7 @@ init(void)
slip_set_input_callback(slip_input_callback); slip_set_input_callback(slip_input_callback);
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
static void static int
output(void) output(void)
{ {
if(uip_ipaddr_cmp(&last_sender, &UIP_IP_BUF->srcipaddr)) { if(uip_ipaddr_cmp(&last_sender, &UIP_IP_BUF->srcipaddr)) {
@ -123,6 +123,7 @@ output(void)
slip_send(); slip_send();
printf("\n"); printf("\n");
} }
return 0;
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
#if !SLIP_BRIDGE_CONF_NO_PUTCHAR #if !SLIP_BRIDGE_CONF_NO_PUTCHAR