mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
bug fix: signal strenghts may not be registered
This commit is contained in:
parent
87adbcb3d5
commit
9611bd100e
@ -383,10 +383,16 @@ public class MRM extends AbstractRadioMedium {
|
||||
}
|
||||
|
||||
public double getDestinationSignalStrength(Radio radio) {
|
||||
if (signalStrengths.get(radio) == null) {
|
||||
return Double.MIN_VALUE;
|
||||
}
|
||||
return signalStrengths.get(radio);
|
||||
}
|
||||
|
||||
public double getInterferenceSignalStrength(Radio radio) {
|
||||
if (signalStrengths.get(radio) == null) {
|
||||
return Double.MIN_VALUE;
|
||||
}
|
||||
return signalStrengths.get(radio);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user