fixed firmware loading bug for micaz nodes

This commit is contained in:
joxe 2009-03-19 09:08:44 +00:00
parent 61d33173a3
commit e3fa0a41d3

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: 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; package se.sics.cooja.avrmote;
@ -103,12 +103,13 @@ public class MicaZMote implements Mote {
protected void initMote() { protected void initMote() {
if (myMoteType != null) { if (myMoteType != null) {
initEmulator(myMoteType.getContikiFirmwareFile().getName()); initEmulator(myMoteType.getContikiFirmwareFile().getAbsolutePath());
myMoteInterfaceHandler = createMoteInterfaceHandler(); myMoteInterfaceHandler = createMoteInterfaceHandler();
} }
} }
protected boolean initEmulator(String fileELF) { protected boolean initEmulator(String fileELF) {
//System.out.println("Loading elf file: " + fileELF);
try { try {
prepareMote(fileELF); prepareMote(fileELF);
} catch (Exception e) { } catch (Exception e) {