File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -64,8 +64,6 @@ public class Base {
64
64
/** Set true if this a proper release rather than a numbered revision. */
65
65
static public boolean RELEASE = BaseNoGui .RELEASE ;
66
66
67
- private static DiscoveryManager discoveryManager = new DiscoveryManager ();
68
-
69
67
static private boolean commandLine ;
70
68
71
69
// A single instance of the preferences window
@@ -2778,6 +2776,6 @@ public void handleAddLibrary() {
2778
2776
}
2779
2777
2780
2778
public static DiscoveryManager getDiscoveryManager () {
2781
- return discoveryManager ;
2779
+ return BaseNoGui . getDiscoveryManager () ;
2782
2780
}
2783
2781
}
Original file line number Diff line number Diff line change 17
17
import org .apache .commons .logging .impl .LogFactoryImpl ;
18
18
import org .apache .commons .logging .impl .NoOpLog ;
19
19
20
+ import cc .arduino .packages .DiscoveryManager ;
21
+
20
22
import processing .app .debug .TargetBoard ;
21
23
import processing .app .debug .TargetPackage ;
22
24
import processing .app .debug .TargetPlatform ;
@@ -43,6 +45,8 @@ public class BaseNoGui {
43
45
// commandline
44
46
static String currentDirectory = System .getProperty ("user.dir" );
45
47
48
+ private static DiscoveryManager discoveryManager = new DiscoveryManager ();
49
+
46
50
// maps #included files to their library folder
47
51
public static Map <String , Library > importToLibraryTable ;
48
52
@@ -117,6 +121,10 @@ static public TargetPlatform getCurrentTargetPlatformFromPackage(String pack) {
117
121
return getTargetPlatform (pack , PreferencesData .get ("target_platform" ));
118
122
}
119
123
124
+ public static DiscoveryManager getDiscoveryManager () {
125
+ return discoveryManager ;
126
+ }
127
+
120
128
static public File getHardwareFolder () {
121
129
// calculate on the fly because it's needed by Preferences.init() to find
122
130
// the boards.txt and programmers.txt preferences files (which happens
You can’t perform that action at this time.
0 commit comments