Skip to content

Commit 2c89522

Browse files
author
jan
committed
ESP32 needs toOSString for the hooks
For one reason or another the cmd \c fails when using \ and / interchangebly in the ESP32 hooks in eclipse (even in the makefile) ev"en though the work on the command line
1 parent a6d58d3 commit 2c89522

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

io.sloeber.core/src/io/sloeber/arduinoFramework/api/BoardDescription.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -966,9 +966,9 @@ public Map<String, String> getEnvVars() {
966966
String architecture = getArchitecture();
967967
IPath coreHardwarePath = getreferencedCoreHardwarePath();
968968
allVars.put(ENV_KEY_BUILD_ARCH, architecture.toUpperCase());
969-
allVars.put(ENV_KEY_RUNTIME_HARDWARE_PATH, getreferencingPlatformPath().removeLastSegments(1).toString());
970-
allVars.put(ENV_KEY_BUILD_SYSTEM_PATH, coreHardwarePath.append(SYSTEM).toString());
971-
allVars.put(ENV_KEY_RUNTIME_PLATFORM_PATH, getreferencingPlatformPath().toString());
969+
allVars.put(ENV_KEY_RUNTIME_HARDWARE_PATH, getreferencingPlatformPath().removeLastSegments(1).toOSString());
970+
allVars.put(ENV_KEY_BUILD_SYSTEM_PATH, coreHardwarePath.append(SYSTEM).toOSString());
971+
allVars.put(ENV_KEY_RUNTIME_PLATFORM_PATH, getreferencingPlatformPath().toOSString());
972972
//ide_version is defined in pre_processing_platform_default.txt
973973
allVars.put(ENV_KEY_RUNTIME_IDE_VERSION, makeEnvironmentVar("ide_version")); //$NON-NLS-1$
974974
allVars.put(ENV_KEY_RUNTIME_IDE_PATH, makeEnvironmentVar(SLOEBER_HOME));
@@ -990,10 +990,10 @@ public Map<String, String> getEnvVars() {
990990
allVars.put(ENV_KEY_SERIAL_PORT_FILE, getActualUploadPort().replace("/dev/", EMPTY)); //$NON-NLS-1$
991991
// if actual core path is osstring regression test issue555 willl fail teensy
992992
// stuff
993-
allVars.put(ENV_KEY_BUILD_ACTUAL_CORE_PATH, getActualCoreCodePath().toString());
993+
allVars.put(ENV_KEY_BUILD_ACTUAL_CORE_PATH, getActualCoreCodePath().toOSString());
994994
IPath variantPath = getActualVariantPath();
995995
if (variantPath != null) {
996-
allVars.put(ENV_KEY_BUILD_VARIANT_PATH, variantPath.toString());
996+
allVars.put(ENV_KEY_BUILD_VARIANT_PATH, variantPath.toOSString());
997997
} else {// teensy does not use variant
998998
allVars.put(ENV_KEY_BUILD_VARIANT_PATH, EMPTY);
999999
}

0 commit comments

Comments
 (0)