]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/net/ctp/CtpRoutingEngineP.nc
fixed bug reported by Mehmet Akif Antepli - arg type mismatch
[tinyos-2.x.git] / tos / lib / net / ctp / CtpRoutingEngineP.nc
index ec0d0acdf707cc9fe134f6919dc0c7664dc1317b..298cd6407c6329bc5ff6486cab7c1d7b7a99e600 100644 (file)
@@ -242,7 +242,6 @@ implementation {
     /* Is this quality measure better than the minimum threshold? */
     // Implemented assuming quality is EETX
     bool passLinkEtxThreshold(uint16_t etx) {
-       return TRUE;
         return (etx < ETX_THRESHOLD);
     }
 
@@ -809,7 +808,7 @@ implementation {
     command uint16_t      CtpRoutingPacket.getEtx(message_t* msg) {
       return getHeader(msg)->etx;
     }
-    command void          CtpRoutingPacket.setEtx(message_t* msg, uint8_t etx) {
+    command void          CtpRoutingPacket.setEtx(message_t* msg, uint16_t etx) {
       getHeader(msg)->etx = etx;
     }