Skip to content

Commit

Permalink
CC1120: fix duplicate-branch warning from Error Prone
Browse files Browse the repository at this point in the history
  • Loading branch information
nfi committed Nov 20, 2024
1 parent 535317c commit 4e7e506
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions java/se/sics/mspsim/chip/CC1120.java
Original file line number Diff line number Diff line change
Expand Up @@ -383,10 +383,10 @@ 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 */
if (settling != 1) {
/* not implemented: assuming calibration */
}
stateDelay = 0.50;
}
cpu.scheduleTimeEventMillis(goToRX, stateDelay);
Expand Down

0 comments on commit 4e7e506

Please sign in to comment.