Skip to content

Commit

Permalink
Merge pull request #1471 from nfi/fix-duplicate-branches
Browse files Browse the repository at this point in the history
Fix duplicate branches
  • Loading branch information
nfi authored Nov 20, 2024
2 parents 2b9b0bf + a23f95e commit 4586a9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
8 changes: 2 additions & 6 deletions java/org/contikios/mrm/MRM.java
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,9 @@ public Radio getToRadio() {
* When this is implemented, also implement
* RadioConnection.java:getReceptionStartTime()
*/

/* Was interfered: keep interfering */
newConnection.addInterfered(recv, recvSignalStrength);
} else {
/* Was interfered: keep interfering */
newConnection.addInterfered(recv, recvSignalStrength);
}
/* Was interfered: keep interfering */
newConnection.addInterfered(recv, recvSignalStrength);
} else if (recv.isTransmitting()) {
newConnection.addInterfered(recv, recvSignalStrength);
} else if (recv.isReceiving()) {
Expand Down
4 changes: 1 addition & 3 deletions java/se/sics/mspsim/chip/CC1120.java
Original file line number Diff line number Diff line change
Expand Up @@ -383,10 +383,8 @@ public void execute(long t) {
settling = (settling >> 3) & 0b11; /* bit 4:3 */
if (settling == 0) {
stateDelay = 0.20;
} else if (settling == 1) {
stateDelay = 0.50;
} else {
/* not implemented: assuming calibration */
/* Only settling = 1 is implemented. Assume calibration otherwise. */
stateDelay = 0.50;
}
cpu.scheduleTimeEventMillis(goToRX, stateDelay);
Expand Down

0 comments on commit 4586a9a

Please sign in to comment.