bugfix: interfered nondestination radio
This commit is contained in:
parent
7d6ee814da
commit
ac424ca88a
|
@ -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: AbstractRadioMedium.java,v 1.13 2009/11/25 15:49:58 fros4943 Exp $
|
* $Id: AbstractRadioMedium.java,v 1.14 2009/11/25 18:13:05 fros4943 Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package se.sics.cooja.radiomediums;
|
package se.sics.cooja.radiomediums;
|
||||||
|
@ -186,8 +186,10 @@ public abstract class AbstractRadioMedium extends RadioMedium {
|
||||||
for (RadioConnection conn : activeConnections) {
|
for (RadioConnection conn : activeConnections) {
|
||||||
if (conn.isDestination(radio)) {
|
if (conn.isDestination(radio)) {
|
||||||
conn.addInterfered(radio);
|
conn.addInterfered(radio);
|
||||||
|
if (!radio.isInterfered()) {
|
||||||
|
radio.interfereAnyReception();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
radio.interfereAnyReception();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue