@@ -648,13 +648,16 @@ private static void setTheEnvironmentVariablesAddAFile(IContributedEnvironment c
648
648
* The file to parse
649
649
*/
650
650
private static void setTheEnvironmentVariablesAddtheBoardsTxt (IContributedEnvironment contribEnv , ICConfigurationDescription confDesc ,
651
- ArduinoBoards boardsFile , String boardID ) {
651
+ ArduinoBoards boardsFile , String boardID , boolean warn ) {
652
652
653
653
// Get the boards section and add all entries to the environment variables
654
654
Map <String , String > boardSectionMap = boardsFile .getSection (boardID );
655
655
if (boardSectionMap == null ) {
656
- Common .log (new Status (IStatus .WARNING , ArduinoConst .CORE_PLUGIN_ID , "The project "
657
- + confDesc .getProjectDescription ().getProject ().getName () + " Has an invalid arduino board configuration." ));
656
+ if (warn ) {
657
+ Common .log (new Status (IStatus .WARNING , ArduinoConst .CORE_PLUGIN_ID , "The project "
658
+ + confDesc .getProjectDescription ().getProject ().getName () + " Has an invalid arduino board configuration." ));
659
+
660
+ }
658
661
return ;
659
662
}
660
663
for (Entry <String , String > currentPair : boardSectionMap .entrySet ()) {
@@ -822,12 +825,12 @@ public static void setTheEnvironmentVariables(IProject project, ICConfigurationD
822
825
setTheEnvironmentVariablesAddAFile (contribEnv , confDesc , localPlatformFilename );
823
826
}
824
827
// now process the boards file
825
- setTheEnvironmentVariablesAddtheBoardsTxt (contribEnv , confDesc , boardsFile , boardID );
828
+ setTheEnvironmentVariablesAddtheBoardsTxt (contribEnv , confDesc , boardsFile , boardID , true );
826
829
827
830
// also process the file as part of the plugin
828
831
if (arduinoEclipsePluginFile .toFile ().exists ()) {
829
832
ArduinoBoards myBoardsFile = new ArduinoBoards (arduinoEclipsePluginFile .toOSString ());
830
- setTheEnvironmentVariablesAddtheBoardsTxt (contribEnv , confDesc , myBoardsFile , boardID );
833
+ setTheEnvironmentVariablesAddtheBoardsTxt (contribEnv , confDesc , myBoardsFile , boardID , false );
831
834
}
832
835
833
836
// Do some post processing
0 commit comments