X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Frf2xx%2Frf212%2FRF212DriverLayerP.nc;h=1365e6a8d625f5d9f8094bf2fa164683fe9c302a;hb=d03a93b123972e8e55b85de7347179f1d948ed2c;hp=0bd62ab3053fa324f2ecdd7cbe906cdbea3449a9;hpb=aa06ccbae0d3ae907a0ae6dbc1496f1efd947b4e;p=tinyos-2.x.git diff --git a/tos/chips/rf2xx/rf212/RF212DriverLayerP.nc b/tos/chips/rf2xx/rf212/RF212DriverLayerP.nc index 0bd62ab3..1365e6a8 100644 --- a/tos/chips/rf2xx/rf212/RF212DriverLayerP.nc +++ b/tos/chips/rf2xx/rf212/RF212DriverLayerP.nc @@ -524,7 +524,7 @@ implementation { length = getHeader(msg)->length; - call DiagMsg.str("t"); + call DiagMsg.str('t'); call DiagMsg.uint32(call PacketTimeStamp.isValid(rxMsg) ? call PacketTimeStamp.timestamp(rxMsg) : 0); call DiagMsg.uint16(call RadioAlarm.getNow()); call DiagMsg.int8(length); @@ -625,11 +625,13 @@ implementation { length = getHeader(rxMsg)->length; - call DiagMsg.str("r"); + call DiagMsg.str('r'); call DiagMsg.uint32(call PacketTimeStamp.isValid(rxMsg) ? call PacketTimeStamp.timestamp(rxMsg) : 0); call DiagMsg.uint16(call RadioAlarm.getNow()); call DiagMsg.int8(crc != 0 ? length : -length); call DiagMsg.hex8s(getPayload(rxMsg), length - 2); + call DiagMsg.int8(call PacketRSSI.isSet(rxMsg) ? call PacketRSSI.get(rxMsg) : -1); + call DiagMsg.uint8(call PacketLinkQuality.isSet(rxMsg) ? call PacketLinkQuality.get(rxMsg) : 0); call DiagMsg.send(); } #endif