bugfix: restoring path from wrong source when loading msp mote type

This commit is contained in:
fros4943 2009-09-18 09:26:22 +00:00
parent dc07c1ad26
commit d9f3e2b05f

View file

@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* $Id: MspMoteType.java,v 1.31 2009/09/17 10:50:11 fros4943 Exp $ * $Id: MspMoteType.java,v 1.32 2009/09/18 09:26:22 fros4943 Exp $
*/ */
package se.sics.cooja.mspmote; package se.sics.cooja.mspmote;
@ -269,7 +269,7 @@ public abstract class MspMoteType implements MoteType {
} else if (name.equals("firmware")) { } else if (name.equals("firmware")) {
fileFirmware = new File(element.getText()); fileFirmware = new File(element.getText());
if (!fileFirmware.exists()) { if (!fileFirmware.exists()) {
fileFirmware = simulation.getGUI().restorePortablePath(fileSource); fileFirmware = simulation.getGUI().restorePortablePath(fileFirmware);
} }
} else if (name.equals("elf")) { } else if (name.equals("elf")) {
/* Backwards compatibility: elf is now firmware */ /* Backwards compatibility: elf is now firmware */