Imprvove code style
This commit is contained in:
parent
626957c3ef
commit
6a5136ac76
@ -51,7 +51,7 @@
|
||||
#include "net/netstack.h"
|
||||
#include "dev/button-sensor.h"
|
||||
#include "dev/slip.h"
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@ -62,9 +62,9 @@
|
||||
|
||||
static uip_ipaddr_t prefix;
|
||||
static uint8_t prefix_set;
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
PROCESS(border_router_process, "Border router process");
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
#if BORDER_ROUTER_CONF_WEBSERVER
|
||||
/* Use simple webserver with only one page for minimum footprint.
|
||||
* Multiple connections can result in interleaved tcp segments since
|
||||
|
@ -55,7 +55,7 @@ static uip_ipaddr_t last_sender;
|
||||
static void
|
||||
slip_input_callback(void)
|
||||
{
|
||||
// PRINTF("SIN: %u\n", uip_len);
|
||||
PRINTF("SIN: %u\n", uip_len);
|
||||
if(uip_buf[0] == '!') {
|
||||
PRINTF("Got configuration message of type %c\n", uip_buf[1]);
|
||||
uip_clear_buf();
|
||||
@ -82,7 +82,6 @@ slip_input_callback(void)
|
||||
}
|
||||
uip_len = 18;
|
||||
slip_send();
|
||||
|
||||
}
|
||||
uip_clear_buf();
|
||||
}
|
||||
@ -111,12 +110,11 @@ output(void)
|
||||
PRINT6ADDR(&UIP_IP_BUF->destipaddr);
|
||||
PRINTF("\n");
|
||||
} else {
|
||||
// PRINTF("SUT: %u\n", uip_len);
|
||||
PRINTF("SUT: %u\n", uip_len);
|
||||
slip_send();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
#if !SLIP_BRIDGE_CONF_NO_PUTCHAR
|
||||
#undef putchar
|
||||
|
Loading…
Reference in New Issue
Block a user