From d9f3e2b05f2331ecca5ce6a9d9e1b9ff9896734d Mon Sep 17 00:00:00 2001 From: fros4943 Date: Fri, 18 Sep 2009 09:26:22 +0000 Subject: [PATCH] bugfix: restoring path from wrong source when loading msp mote type --- .../apps/mspsim/src/se/sics/cooja/mspmote/MspMoteType.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/MspMoteType.java b/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/MspMoteType.java index a809dc6d2..722f7afb2 100644 --- a/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/MspMoteType.java +++ b/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/MspMoteType.java @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * 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; @@ -269,7 +269,7 @@ public abstract class MspMoteType implements MoteType { } else if (name.equals("firmware")) { fileFirmware = new File(element.getText()); if (!fileFirmware.exists()) { - fileFirmware = simulation.getGUI().restorePortablePath(fileSource); + fileFirmware = simulation.getGUI().restorePortablePath(fileFirmware); } } else if (name.equals("elf")) { /* Backwards compatibility: elf is now firmware */