From e6d5255864069b72baeab67394bcf30b3c48fb5a Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Thu, 18 Oct 2012 19:34:11 +0200 Subject: [PATCH] Fixed concurrent access to HashMap when programming Mega2560 --- app/src/processing/app/debug/Compiler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/processing/app/debug/Compiler.java b/app/src/processing/app/debug/Compiler.java index c97a1c268..47777792b 100644 --- a/app/src/processing/app/debug/Compiler.java +++ b/app/src/processing/app/debug/Compiler.java @@ -654,8 +654,8 @@ public class Compiler implements MessageConsumer { objectFileList = objectFileList.substring(1); PreferencesMap dict = new PreferencesMap(prefs); - dict.put("compiler.c.elf.flags", dict - .get("compiler.c.elf.flags" + optRelax)); + String flags = dict.get("compiler.c.elf.flags") + optRelax; + dict.put("compiler.c.elf.flags", flags); dict.put("archive_file", "core.a"); dict.put("object_files", objectFileList); dict.put("ide_version", "" + Base.REVISION);