Skip to content

Commit e0a8aef

Browse files
author
jantje
committed
#1047 apply the esp8266 windows fix in all cases
1 parent e7a2471 commit e0a8aef

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

io.sloeber.core/src/io/sloeber/core/managers/InternalPackageManager.java

+4-8
Original file line numberDiff line numberDiff line change
@@ -145,15 +145,11 @@ static public IStatus downloadAndInstall(ArduinoPlatform platform, boolean force
145145
}
146146
}
147147

148-
// on Windows fix esp8266 platform.txt file
149-
// replace -DARDUINO_BOARD="{build.board}" with
148+
// always replace -DARDUINO_BOARD="{build.board}" with
150149
// -DARDUINO_BOARD="\"{build.board}\""
151-
if (SystemUtils.IS_OS_WINDOWS) {
152-
if ("esp8266".equals(platform.getArchitecture()) && "esp8266".equals(platform.getName())) { //$NON-NLS-1$ //$NON-NLS-2$
153-
FileModifiers.replaceInFile(platform.getPlatformFile(), false, "-DARDUINO_BOARD=\"{build.board}\"", //$NON-NLS-1$
154-
"-DARDUINO_BOARD=\"\\\"{build.board}\\\"\""); //$NON-NLS-1$
155-
}
156-
}
150+
FileModifiers.replaceInFile(platform.getPlatformFile(), false, "-DARDUINO_BOARD=\"{build.board}\"", //$NON-NLS-1$
151+
"-DARDUINO_BOARD=\"\\\"{build.board}\\\"\""); //$NON-NLS-1$
152+
157153
return mstatus;
158154

159155
}

0 commit comments

Comments
 (0)