/*
* BaseStationP bridges packets between a serial channel and the radio.
* Messages moving from serial to radio will be tagged with the group
- * ID compiled into the TOSBase, and messages moving from radio to
+ * ID compiled into the BaseStation, and messages moving from radio to
* serial will be filtered by that same group id.
*/
am_id_t id;
am_addr_t addr, src;
message_t* msg;
+ am_group_t grp;
atomic
if (uartIn == uartOut && !uartFull)
{
id = call RadioAMPacket.type(msg);
addr = call RadioAMPacket.destination(msg);
src = call RadioAMPacket.source(msg);
+ grp = call RadioAMPacket.group(msg);
call UartPacket.clear(msg);
call UartAMPacket.setSource(msg, src);
+ call UartAMPacket.setGroup(msg, grp);
if (call UartSend.send[id](addr, uartQueue[uartOut], len) == SUCCESS)
call Leds.led1Toggle();