diff --git a/io.sloeber.core/src/io/sloeber/core/txt/WorkAround.java b/io.sloeber.core/src/io/sloeber/core/txt/WorkAround.java index cbf01656..23b89dc8 100644 --- a/io.sloeber.core/src/io/sloeber/core/txt/WorkAround.java +++ b/io.sloeber.core/src/io/sloeber/core/txt/WorkAround.java @@ -44,7 +44,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 TXT file V3.00.test 25 "; + private static final String FIRST_SLOEBER_WORKAROUND_LINE = "#Sloeber created TXT file V3.00.test 26 "; private static Map USB_replacers; @@ -64,6 +64,12 @@ public class WorkAround { USB_replacers.put(" '-DARDUINO_BOARD=\"{build.board}\"' ", " \"-DARDUINO_BOARD=\\\"{build.board}\\\"\" "); USB_replacers.put(" -DARDUINO_BOARD=\"{build.board}\" ", " -DARDUINO_BOARD=\\\"{build.board}\\\" "); + USB_replacers.put(" -DARDUINO_VARIANT=\"{build.variant}\" ", " -DARDUINO_VARIANT=\\\"{build.variant}\\\" "); + + USB_replacers.put("-DARDUINO_HOST_OS=\"{runtime.os}\"", "-DARDUINO_HOST_OS=\\\"{runtime.os}\\\""); + + USB_replacers.put(" -DARDUINO_FQBN=\"{build.fqbn}\" ", " -DARDUINO_FQBN=\\\"{build.fqbn}\\\" "); + USB_replacers.put(" '-DUSB_SERIAL=\"{build.usb_serial}\"' ", " \"-DUSB_SERIAL=\\\"{build.usb_serial}\\\"\" "); USB_replacers.put(" '-DUSB_SERIAL={build.usb_serial}' ", " \"-DUSB_SERIAL={build.usb_serial}\" ");