fixed typo

This commit is contained in:
nifi 2008-04-01 13:22:59 +00:00
parent fabe4393f7
commit 8d47324d8f

View File

@ -28,7 +28,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: chameleon-bitopt.c,v 1.3 2008/04/01 13:10:22 nifi Exp $
* $Id: chameleon-bitopt.c,v 1.4 2008/04/01 13:22:59 nifi Exp $
*/
/**
@ -269,7 +269,7 @@ pack_header(struct channel *c)
rimebuf_hdralloc(sizeof(struct bitopt_hdr));
hdr = (struct bitopt_hdr *)rimebuf_hdrptr();
hdr->channel[0] = c->channelno & 0xff;
hdr->channel[1] = (c->channelno & 0xff) << 8;
hdr->channel[1] = (c->channelno >> 8) & 0xff;
return 1; /* Send out packet */
}
@ -289,7 +289,7 @@ unpack_header(void)
for. */
hdr = (struct bitopt_hdr *)rimebuf_dataptr();
rimebuf_hdrreduce(sizeof(struct bitopt_hdr));
c = channel_lookup((hdr->channel[1] << 8) + (hdr->channel[0]));
c = channel_lookup((hdr->channel[1] << 8) + hdr->channel[0]);
if(c == NULL) {
PRINTF("chameleon-bitopt: input: channel %d not found\n", hdr->channel);
return NULL;