File tree 1 file changed +9
-1
lines changed
io.sloeber.core/src/io/sloeber/core/managers
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 33
33
public class WorkAround {
34
34
// Each time this class is touched consider changing the String below to enforce
35
35
// 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 " ;
37
37
38
38
/**
39
39
* 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
215
215
" \" -DARDUINO_BOARD=\\ \" {build.board}\\ \" \" " );
216
216
217
217
}
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
+ }
218
226
FileUtils .write (platformSloeberTXT , platformTXT , Charset .defaultCharset ());
219
227
} catch (IOException e ) {
220
228
Common .log (new Status (IStatus .WARNING , Activator .getId (),
You can’t perform that action at this time.
0 commit comments