Remove commented-out code
This commit is contained in:
parent
1634acf2c4
commit
f49b161795
@ -287,16 +287,8 @@ output_sniffer(int mac_status)
|
|||||||
static void
|
static void
|
||||||
sniffprint(char *prefix, int seqno)
|
sniffprint(char *prefix, int seqno)
|
||||||
{
|
{
|
||||||
/* const linkaddr_t *sender; */
|
|
||||||
/* const linkaddr_t *receiver; */
|
|
||||||
const linkaddr_t *esender;
|
const linkaddr_t *esender;
|
||||||
/* const linkaddr_t *ereceiver; */
|
|
||||||
|
|
||||||
/* sender = packetbuf_addr(PACKETBUF_ADDR_SENDER); */
|
|
||||||
/* receiver = packetbuf_addr(PACKETBUF_ADDR_RECEIVER); */
|
|
||||||
esender = packetbuf_addr(PACKETBUF_ADDR_ESENDER);
|
esender = packetbuf_addr(PACKETBUF_ADDR_ESENDER);
|
||||||
/* ereceiver = packetbuf_addr(PACKETBUF_ADDR_ERECEIVER); */
|
|
||||||
|
|
||||||
|
|
||||||
printf("%lu %s %d %u %d %d %d.%d %u %u\n",
|
printf("%lu %s %d %u %d %d %d.%d %u %u\n",
|
||||||
clock_time(),
|
clock_time(),
|
||||||
|
@ -332,14 +332,10 @@ static void
|
|||||||
parse_incoming_packet(const uint8_t *buf, int len)
|
parse_incoming_packet(const uint8_t *buf, int len)
|
||||||
{
|
{
|
||||||
int numregs;
|
int numregs;
|
||||||
/*int flags;*/
|
|
||||||
int i;
|
int i;
|
||||||
int bufptr;
|
int bufptr;
|
||||||
|
|
||||||
numregs = buf[MSG_NUMREGS_OFFSET];
|
numregs = buf[MSG_NUMREGS_OFFSET];
|
||||||
/*flags = buf[MSG_FLAGS_OFFSET];*/
|
|
||||||
|
|
||||||
/* printf("parse_incoming_packet Numregs %d flags %d\n", numregs, flags);*/
|
|
||||||
|
|
||||||
bufptr = MSG_ADDRS_OFFSET;
|
bufptr = MSG_ADDRS_OFFSET;
|
||||||
for(i = 0; i < numregs; ++i) {
|
for(i = 0; i < numregs; ++i) {
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
/* MCUSR is a deprecated name but older avr-libc versions may define it */
|
/* MCUSR is a deprecated name but older avr-libc versions may define it */
|
||||||
#if !defined (MCUCSR)
|
#if !defined (MCUCSR)
|
||||||
# if defined (MCUSR)
|
# if defined (MCUSR)
|
||||||
/*# warning *** MCUCSR not defined, using MCUSR instead ****/
|
|
||||||
# define MCUCSR MCUSR
|
# define MCUCSR MCUSR
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
@ -67,7 +67,6 @@
|
|||||||
/* MCUSR is a deprecated name but older avr-libc versions may define it */
|
/* MCUSR is a deprecated name but older avr-libc versions may define it */
|
||||||
#if !defined (MCUCSR)
|
#if !defined (MCUCSR)
|
||||||
# if defined (MCUSR)
|
# if defined (MCUSR)
|
||||||
/*# warning *** MCUCSR not defined, using MCUSR instead ****/
|
|
||||||
# define MCUCSR MCUSR
|
# define MCUCSR MCUSR
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user