[cooja/mspsim] Msp802154Radio: Fix maximum power indicator
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.
This commit is contained in:
parent
fd5e79d0db
commit
9d27b181c1
|
@ -332,7 +332,7 @@ public class Msp802154Radio extends Radio implements CustomDataRadio {
|
|||
}
|
||||
|
||||
public int getOutputPowerIndicatorMax() {
|
||||
return 31;
|
||||
return radio.getOutputPowerIndicatorMax();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue