Skip to content

Commit d71c0ac

Browse files
author
jantje
committed
try to remove the opt file for the discovery #1547 #1534
This should fix current STM32 implementation and ESP8266
1 parent 505ae07 commit d71c0ac

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
public class WorkAround extends Const {
4646
// Each time this class is touched consider changing the String below to enforce
4747
// updates
48-
private static final String FIRST_SLOEBER_WORKAROUND_LINE = "#Sloeber created TXT file V2.00.test 09 ";
48+
private static final String FIRST_SLOEBER_WORKAROUND_LINE = "#Sloeber created TXT file V2.01.test 01 ";
4949

5050
/**
5151
* workarounds done at installation time. I try to keep those at a minimum but
@@ -271,6 +271,14 @@ private static String platformApplyCustomWorkArounds(String inPlatformTxt) {
271271

272272
// for ESP32 remove the build options fix for arduino ide #1390
273273
platformTXT = platformTXT.replace(" \"@{build.opt.path}\" ", " ");
274+
platformTXT = platformTXT.replace(" \"@{build.opt.path}\"", "");
275+
platformTXT = platformTXT.replace("\"@{build.opt.path}\" ", "");
276+
platformTXT = platformTXT.replace("\"@{build.opt.path}\"", "");
277+
// for esp8266
278+
platformTXT = platformTXT.replace(" \"@{build.opt.fqfn}\" ", " ");
279+
platformTXT = platformTXT.replace("\"@{build.opt.fqfn}\" ", "");
280+
platformTXT = platformTXT.replace(" \"@{build.opt.fqfn}\"", "");
281+
platformTXT = platformTXT.replace("\"@{build.opt.fqfn}\"", "");
274282

275283
return platformTXT;
276284
}

0 commit comments

Comments
 (0)