Skip to content

Commit 8b25ec6

Browse files
committed
regression #1047 in Linux
1 parent 9bb1af2 commit 8b25ec6

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
public class WorkAround {
3434
// Each time this class is touched consider changing the String below to enforce
3535
// updates
36-
private static final String FIRST_SLOEBER_WORKAROUND_LINE = "#Sloeber created workaound file V1.00.test 3";
36+
private static final String FIRST_SLOEBER_WORKAROUND_LINE = "#Sloeber created workaound file V1.00.test 4";
3737

3838
/**
3939
* workarounds done at installation time. I try to keep those at a minimum but
@@ -215,6 +215,14 @@ public synchronized static File MakePlatformSloeberTXT(File requestedFileToWorkA
215215
" \"-DARDUINO_BOARD=\\\"{build.board}\\\"\" ");
216216

217217
}
218+
if(SystemUtils.IS_OS_LINUX) {
219+
platformTXT = platformTXT.replace(" -DUSB_MANUFACTURER={build.usb_manufacturer} ",
220+
" '-DUSB_MANUFACTURER=\"{build.usb_manufacturer}\"' ");
221+
platformTXT = platformTXT.replace(" -DUSB_PRODUCT={build.usb_product} ",
222+
" '-DUSB_PRODUCT=\"{build.usb_product}\" '");
223+
platformTXT = platformTXT.replace(" -DARDUINO_BOARD=\"{build.board}\" ",
224+
" '-DARDUINO_BOARD=\"{build.board}\"' ");
225+
}
218226
FileUtils.write(platformSloeberTXT, platformTXT, Charset.defaultCharset());
219227
} catch (IOException e) {
220228
Common.log(new Status(IStatus.WARNING, Activator.getId(),

0 commit comments

Comments
 (0)