Skip to content

Commit

Permalink
UDGM.java: Inform transmitting motes of interfering transmissions
Browse files Browse the repository at this point in the history
  • Loading branch information
kkrentz committed Aug 25, 2023
1 parent 4f7c369 commit 7dc66f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions java/org/contikios/cooja/radiomediums/UDGM.java
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ protected RadioConnection createConnections(Radio sender) {
newConnection.addInterfered(recv);
} else if (recv.isTransmitting()) {
newConnection.addInterfered(recv);
recv.interfereAnyReception();
} else if (recv.isReceiving() ||
(random.nextDouble() > getRxSuccessProbability(sender, recv))) {
/* Was receiving, or reception failed: start interfering */
Expand Down

0 comments on commit 7dc66f6

Please sign in to comment.