bugfix: restoring path from wrong source when loading msp mote type
This commit is contained in:
parent
dc07c1ad26
commit
d9f3e2b05f
1 changed files with 2 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue