Code style fixes: cc2530dk examples
This commit is contained in:
parent
351a4d39b9
commit
594ba9a0ed
10 changed files with 38 additions and 35 deletions
|
@ -72,7 +72,8 @@ ping6handler()
|
|||
count, PING6_DATALEN);
|
||||
|
||||
|
||||
uip_len = UIP_ICMPH_LEN + UIP_ICMP6_ECHO_REQUEST_LEN + UIP_IPH_LEN + PING6_DATALEN;
|
||||
uip_len = UIP_ICMPH_LEN + UIP_ICMP6_ECHO_REQUEST_LEN + UIP_IPH_LEN
|
||||
+ PING6_DATALEN;
|
||||
UIP_IP_BUF->len[0] = (uint8_t)((uip_len - 40) >> 8);
|
||||
UIP_IP_BUF->len[1] = (uint8_t)((uip_len - 40) & 0x00FF);
|
||||
|
||||
|
@ -104,9 +105,9 @@ PROCESS_THREAD(ping6_process, ev, data)
|
|||
PRINTF("ping6 running.\n");
|
||||
PRINTF("Button 1: 5 pings 16 byte payload.\n");
|
||||
|
||||
uip_ip6addr(&dest_addr,0xaaaa,0,0,0,0x0215,0x2000,0x0002,0x2145);
|
||||
uip_ip6addr(&dest_addr, 0xaaaa, 0, 0, 0, 0x0215, 0x2000, 0x0002, 0x2145);
|
||||
count = 0;
|
||||
|
||||
|
||||
icmp6_new(NULL);
|
||||
|
||||
while(1) {
|
||||
|
@ -124,7 +125,7 @@ PROCESS_THREAD(ping6_process, ev, data)
|
|||
PRINTF("Echo Reply\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
PROCESS_END();
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue