mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-09-15 17:56:22 +00:00
Added check if the interface is not available
This commit is contained in:
parent
997baa67d1
commit
d83b461654
@ -416,6 +416,10 @@ public abstract class MspMote extends AbstractEmulatedMote implements Mote, Watc
|
|||||||
}
|
}
|
||||||
|
|
||||||
MoteInterface moteInterface = getInterfaces().getInterfaceOfType(moteInterfaceClass);
|
MoteInterface moteInterface = getInterfaces().getInterfaceOfType(moteInterfaceClass);
|
||||||
|
if (moteInterface == null) {
|
||||||
|
logger.fatal("Could not find mote interface of class: " + moteInterfaceClass);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
moteInterface.setConfigXML(element.getChildren(), visAvailable);
|
moteInterface.setConfigXML(element.getChildren(), visAvailable);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user