Set the channel as a packet attribute

This commit is contained in:
adamdunkels 2008-08-15 18:59:22 +00:00
parent cab149cad0
commit 210782d9c6

View file

@ -28,7 +28,7 @@
* *
* This file is part of the Contiki operating system. * This file is part of the Contiki operating system.
* *
* $Id: chameleon.c,v 1.4 2008/07/03 23:13:31 adamdunkels Exp $ * $Id: chameleon.c,v 1.5 2008/08/15 18:59:22 adamdunkels Exp $
*/ */
/** /**
@ -116,6 +116,7 @@ chameleon_input(void)
PRINTF("%d.%d: chameleon_input channel %d\n", PRINTF("%d.%d: chameleon_input channel %d\n",
rimeaddr_node_addr.u8[0],rimeaddr_node_addr.u8[1], rimeaddr_node_addr.u8[0],rimeaddr_node_addr.u8[1],
c->channelno); c->channelno);
rimebuf_set_attr(RIMEBUF_ATTR_CHANNEL, c->channelno);
abc_input(c); abc_input(c);
} else { } else {
PRINTF("%d.%d: chameleon_input channel not found for incoming packet\n", PRINTF("%d.%d: chameleon_input channel not found for incoming packet\n",