]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/rf230/RF230LayerP.nc
add LPL tests and remove bad TX check from RF230LayerP
[tinyos-2.x.git] / tos / chips / rf230 / RF230LayerP.nc
index 42d0401bc7748ba6c39435c9e6eb7df8fabd9856..b35705ab62ba93fc7a83963aa3d67ee23c1282af 100644 (file)
@@ -469,19 +469,10 @@ implementation
                 * radio can even receive a message, and generate a TRX_UR interrupt
                 * because of concurrent access, but that message probably cannot be
                 * recovered.
+                *
+                * TODO: this needs to be verified, and make sure that the chip is 
+                * not locked up in this case.
                 */
-               if( (readRegister(RF230_TRX_STATUS) & RF230_TRX_STATUS_MASK) != RF230_BUSY_TX )
-               {
-                       ASSERT( (readRegister(RF230_TRX_STATUS) & RF230_TRX_STATUS_MASK) == RF230_PLL_ON );
-
-                       writeRegister(RF230_TRX_STATE, RF230_RX_ON);
-                       readRegister(RF230_IRQ_STATUS);
-                       radioIrq = FALSE;
-
-                       call PacketTimeStamp.clear(msg);
-
-                       return FAIL;
-               }
 
                // go back to RX_ON state when finished
                writeRegister(RF230_TRX_STATE, RF230_RX_ON);