File tree Expand file tree Collapse file tree 2 files changed +3
-19
lines changed
Expand file tree Collapse file tree 2 files changed +3
-19
lines changed Original file line number Diff line number Diff line change 5151 version = "x.x.x-dev" //don't modify it, Jenkins will take care
5252 commit = "xxxxxxxx" //don't modify it, Jenkins will take care
5353 port string
54- portSSL string
55- requiredToolsAPILevel = "v1"
54+ portSSL string
5655)
5756
5857// regular flags
@@ -186,7 +185,7 @@ func loop() {
186185 h .broadcastSys <- mapB
187186 },
188187 }
189- Tools .Init (requiredToolsAPILevel )
188+ Tools .Init ()
190189
191190 // Let's handle the config
192191 configDir := config .GetDefaultConfigDir ()
Original file line number Diff line number Diff line change @@ -56,27 +56,12 @@ type Tools struct {
5656}
5757
5858// Init creates the Installed map and populates it from a file in .arduino-create
59- func (t * Tools ) Init (APIlevel string ) {
59+ func (t * Tools ) Init () {
6060 createDir (t .Directory )
6161 t .mutex .Lock ()
6262 t .installed = make (map [string ]string )
6363 t .mutex .Unlock ()
6464 t .readMap ()
65- t .mutex .RLock ()
66- if t .installed ["apilevel" ] != APIlevel {
67- t .mutex .RUnlock ()
68- // wipe the folder and reinitialize the data
69- os .RemoveAll (t .Directory )
70- createDir (t .Directory )
71- t .mutex .Lock ()
72- t .installed = make (map [string ]string )
73- t .installed ["apilevel" ] = APIlevel
74- t .mutex .Unlock ()
75- t .writeMap ()
76- t .readMap ()
77- } else {
78- t .mutex .RUnlock ()
79- }
8065}
8166
8267// GetLocation extracts the toolname from a command like
You can’t perform that action at this time.
0 commit comments