Changes to the ping part of the cc2530 and Sensinode udp-ipv6 examples
- Remove obsolete variable declarations - prettier printf output - cc2530 example turns on printfs
This commit is contained in:
parent
5afdd19403
commit
23e7f242f6
2 changed files with 5 additions and 7 deletions
|
@ -49,7 +49,6 @@
|
|||
|
||||
static struct etimer ping6_periodic_timer;
|
||||
static uint8_t count = 0;
|
||||
static uint16_t addr[8];
|
||||
static uip_ipaddr_t dest_addr;
|
||||
|
||||
PROCESS(ping6_process, "PING6 process");
|
||||
|
@ -83,9 +82,9 @@ ping6handler()
|
|||
UIP_ICMP_BUF->icmpchksum = ~uip_icmp6chksum();
|
||||
|
||||
|
||||
PRINTF("Echo Request to");
|
||||
PRINTF("Echo Request to ");
|
||||
PRINT6ADDR(&UIP_IP_BUF->destipaddr);
|
||||
PRINTF("from");
|
||||
PRINTF(" from ");
|
||||
PRINT6ADDR(&UIP_IP_BUF->srcipaddr);
|
||||
PRINTF("\n");
|
||||
UIP_STAT(++uip_stat.icmp.sent);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue