From 66e361058ac534b77672288995ffb3cadd60a672 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Fri, 3 Oct 2008 15:08:17 +0000 Subject: [PATCH] fix: local firmware file variable defined when compilation starts --- .../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 52ad6e7ce..95449cc99 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.13 2008/10/03 15:02:21 fros4943 Exp $ + * $Id: MspMoteType.java,v 1.14 2008/10/03 15:08:17 fros4943 Exp $ */ package se.sics.cooja.mspmote; @@ -485,8 +485,8 @@ public abstract class MspMoteType implements MoteType { final BufferedReader processError = new BufferedReader( new InputStreamReader(compileProcess.getErrorStream())); + final File ELFFile = new File(parentDirectory, firmware); if (firmware != null) { - final File ELFFile = new File(parentDirectory, firmware); if (ELFFile.exists()) { ELFFile.delete(); if (ELFFile.exists()) {