bug fix: interfering already interfered (prolonging) radios
This commit is contained in:
parent
d6bbf0cf3d
commit
3d66a54bdc
|
@ -26,7 +26,7 @@
|
||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: StandardRadioMedium.java,v 1.3 2006/10/05 07:53:06 fros4943 Exp $
|
* $Id: StandardRadioMedium.java,v 1.4 2006/10/05 08:19:41 fros4943 Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package se.sics.cooja.radiomediums;
|
package se.sics.cooja.radiomediums;
|
||||||
|
@ -381,7 +381,7 @@ public class StandardRadioMedium extends RadioMedium {
|
||||||
dataToSend);
|
dataToSend);
|
||||||
|
|
||||||
// If close enough to transmit ok..
|
// If close enough to transmit ok..
|
||||||
if (listeningRadio.isReceiving()) {
|
if (listeningRadio.isReceiving() || listeningRadio.isInterfered()) {
|
||||||
// .. but listening radio already received a packet
|
// .. but listening radio already received a packet
|
||||||
listeningRadio.interferReception(sendingRadio.getTransmissionEndTime());
|
listeningRadio.interferReception(sendingRadio.getTransmissionEndTime());
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue