Skip to content

Commit

Permalink
[cooja/mspsim] Msp802154Radio: Fix maximum power indicator
Browse files Browse the repository at this point in the history
Previously getOutputPowerIndicatorMax() returned the fixed value 31.
This is valid for e.g. the mspsim CC2420 radio implementation but not for the CC2520 implementation where the maximum returned value is 9.

Thus to fix transmission range issues (for example for Wismote node) the maxium value provided by the radio implementaiton must be used.
  • Loading branch information
Enrico Joerns committed Oct 4, 2014
1 parent fd5e79d commit 9d27b18
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ public int getCurrentOutputPowerIndicator() {
}

public int getOutputPowerIndicatorMax() {
return 31;
return radio.getOutputPowerIndicatorMax();
}

/**
Expand Down

0 comments on commit 9d27b18

Please sign in to comment.