From e3fa0a41d315e0241555fd933e9f0b02d55856ef Mon Sep 17 00:00:00 2001 From: joxe Date: Thu, 19 Mar 2009 09:08:44 +0000 Subject: [PATCH] fixed firmware loading bug for micaz nodes --- .../apps/avrora/src/se/sics/cooja/avrmote/MicaZMote.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/cooja/apps/avrora/src/se/sics/cooja/avrmote/MicaZMote.java b/tools/cooja/apps/avrora/src/se/sics/cooja/avrmote/MicaZMote.java index 998a587c6..22fe4e631 100755 --- a/tools/cooja/apps/avrora/src/se/sics/cooja/avrmote/MicaZMote.java +++ b/tools/cooja/apps/avrora/src/se/sics/cooja/avrmote/MicaZMote.java @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: MicaZMote.java,v 1.3 2009/03/11 14:12:19 fros4943 Exp $ + * $Id: MicaZMote.java,v 1.4 2009/03/19 09:08:44 joxe Exp $ */ package se.sics.cooja.avrmote; @@ -103,12 +103,13 @@ public class MicaZMote implements Mote { protected void initMote() { if (myMoteType != null) { - initEmulator(myMoteType.getContikiFirmwareFile().getName()); + initEmulator(myMoteType.getContikiFirmwareFile().getAbsolutePath()); myMoteInterfaceHandler = createMoteInterfaceHandler(); } } protected boolean initEmulator(String fileELF) { + //System.out.println("Loading elf file: " + fileELF); try { prepareMote(fileELF); } catch (Exception e) {