Merge pull request #565 from cmorty/pull/backwards
Fix backwards compatibility (and docs)
This commit is contained in:
commit
3fe2890ddf
|
@ -252,7 +252,7 @@ public class ContikiRadio extends Radio implements ContikiMoteInterface, PolledA
|
|||
|
||||
/** Set LQI to a value between 0 and 255.
|
||||
*
|
||||
* @see se.sics.cooja.interfaces.Radio#setLQI(int)
|
||||
* @see org.contikios.cooja.interfaces.Radio#setLQI(int)
|
||||
*/
|
||||
public void setLQI(int lqi){
|
||||
if(lqi<0) {
|
||||
|
|
|
@ -380,6 +380,9 @@ public void simulationFinishedLoading() {
|
|||
if (destClassName == null || destClassName.isEmpty()) {
|
||||
continue;
|
||||
}
|
||||
/* Backwards compatibility: se.sics -> org.contikios */
|
||||
destClassName = destClassName.replaceFirst("^se\\.sics", "org.contikios");
|
||||
|
||||
Class<? extends DGRMDestinationRadio> destClass =
|
||||
simulation.getCooja().tryLoadClass(this, DGRMDestinationRadio.class, destClassName);
|
||||
if (destClass == null) {
|
||||
|
|
Loading…
Reference in a new issue