Skip to content

Commit d824d3e

Browse files
committed
Fixed the loggings of "The project XXX Has an invalid arduino board configuration."
These were logged if the board was not found in the preprocessing and post processing files. They do not have to be there. related to #321
1 parent e43a77b commit d824d3e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

it.baeyens.arduino.core/src/it/baeyens/arduino/tools/ArduinoHelpers.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -652,8 +652,8 @@ private static void setTheEnvironmentVariablesAddtheBoardsTxt(IContributedEnviro
652652
if (boardSectionMap == null) {
653653
if (warn) {
654654
Common.log(new Status(IStatus.INFO, ArduinoConst.CORE_PLUGIN_ID, "The project "
655-
+ confDesc.getProjectDescription().getProject().getName() + " Has an invalid arduino board configuration."));
656-
655+
+ confDesc.getProjectDescription().getProject().getName() + " has an invalid arduino board configuration.\nConfiguration:"
656+
+ confDesc.getName() + "\nBoardsfile:" + boardsFile.getBoardsTxtName() + "\nBoardID:" + boardID));
657657
}
658658
return;
659659
}
@@ -795,7 +795,7 @@ public static void setTheEnvironmentVariables(IProject project, ICConfigurationD
795795
setTheEnvironmentVariablesSetTheDefaults(contribEnv, confDesc, localPlatformFilename);
796796

797797
setTheEnvironmentVariablesAddAFile(contribEnv, confDesc, pluginPreProcessingPlatformTxt);
798-
setTheEnvironmentVariablesAddtheBoardsTxt(contribEnv, confDesc, pluginPreProcessingBoardsTxt, boardID, true);
798+
setTheEnvironmentVariablesAddtheBoardsTxt(contribEnv, confDesc, pluginPreProcessingBoardsTxt, boardID, false);
799799

800800
// Do some magic for the arduino:arduino stuff
801801
setTheEnvironmentVariablesRedirectToOtherVendors(contribEnv, confDesc, boardsFile, boardID, architecture.toLowerCase());// TOFIX again some
@@ -820,7 +820,7 @@ public static void setTheEnvironmentVariables(IProject project, ICConfigurationD
820820
setTheEnvironmentVariablesAddtheBoardsTxt(contribEnv, confDesc, boardsFile, boardID, true);
821821

822822
setTheEnvironmentVariablesAddAFile(contribEnv, confDesc, pluginPostProcessingPlatformTxt);
823-
setTheEnvironmentVariablesAddtheBoardsTxt(contribEnv, confDesc, pluginPostProcessingBoardsTxt, boardID, true);
823+
setTheEnvironmentVariablesAddtheBoardsTxt(contribEnv, confDesc, pluginPostProcessingBoardsTxt, boardID, false);
824824

825825
// Do some coded post processing
826826
setTheEnvironmentVariablesPostProcessing(contribEnv, confDesc);

0 commit comments

Comments
 (0)