Skip to content

Commit

Permalink
regression #1047 in Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
jantje committed Apr 23, 2020
1 parent 9bb1af2 commit 8b25ec6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion io.sloeber.core/src/io/sloeber/core/managers/WorkAround.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
public class WorkAround {
// Each time this class is touched consider changing the String below to enforce
// updates
private static final String FIRST_SLOEBER_WORKAROUND_LINE = "#Sloeber created workaound file V1.00.test 3";
private static final String FIRST_SLOEBER_WORKAROUND_LINE = "#Sloeber created workaound file V1.00.test 4";

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

}
if(SystemUtils.IS_OS_LINUX) {
platformTXT = platformTXT.replace(" -DUSB_MANUFACTURER={build.usb_manufacturer} ",
" '-DUSB_MANUFACTURER=\"{build.usb_manufacturer}\"' ");
platformTXT = platformTXT.replace(" -DUSB_PRODUCT={build.usb_product} ",
" '-DUSB_PRODUCT=\"{build.usb_product}\" '");
platformTXT = platformTXT.replace(" -DARDUINO_BOARD=\"{build.board}\" ",
" '-DARDUINO_BOARD=\"{build.board}\"' ");
}
FileUtils.write(platformSloeberTXT, platformTXT, Charset.defaultCharset());
} catch (IOException e) {
Common.log(new Status(IStatus.WARNING, Activator.getId(),
Expand Down

0 comments on commit 8b25ec6

Please sign in to comment.