File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
io.sloeber.core/src/io/sloeber/core/managers Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 3333public 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 (),
You can’t perform that action at this time.
0 commit comments