Skip to content

Commit bd9330b

Browse files
committed
Allowing only a single platform per platforms.txt / folder.
1 parent fcbbf8f commit bd9330b

File tree

96 files changed

+6
-69
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+6
-69
lines changed

app/src/processing/app/debug/Target.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public Target(String name, File folder) {
6565

6666
}
6767

68-
File platformsFile = new File(folder,"platforms.txt");
68+
File platformsFile = new File(folder,"platform.txt");
6969
try
7070
{
7171
if(platformsFile.exists()){
@@ -74,9 +74,10 @@ public Target(String name, File folder) {
7474
for(Object k : platformPreferences.keySet())
7575
{
7676
String key=(String) k;
77-
String platform=key.substring(0,key.indexOf('.'));
77+
//String platform=key.substring(0,key.indexOf('.'));
78+
String platform=folder.getName();
7879
if (!platforms.containsKey(platform)) platforms.put(platform, new HashMap());
79-
((Map) platforms.get(platform)).put(key.substring(key.indexOf('.') + 1),platformPreferences.get(key));
80+
((Map) platforms.get(platform)).put(key,platformPreferences.get(key));
8081
}
8182
}
8283
} catch (Exception e) {

build/shared/lib/preferences.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,11 +238,11 @@ run.present.exclusive.macosx = true
238238

239239
# ARDUINO PREFERENCES
240240
board = uno
241-
target = arduino
241+
target = avr
242242
platform = avr
243243
software=ARDUINO
244244

245-
programmer = arduino:avrispmkii
245+
programmer = avr:avrispmkii
246246

247247
upload.using = bootloader
248248

hardware/arduino/platforms.txt

Lines changed: 0 additions & 64 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)