File tree 2 files changed +3
-19
lines changed
2 files changed +3
-19
lines changed Original file line number Diff line number Diff line change 51
51
version = "x.x.x-dev" //don't modify it, Jenkins will take care
52
52
commit = "xxxxxxxx" //don't modify it, Jenkins will take care
53
53
port string
54
- portSSL string
55
- requiredToolsAPILevel = "v1"
54
+ portSSL string
56
55
)
57
56
58
57
// regular flags
@@ -186,7 +185,7 @@ func loop() {
186
185
h .broadcastSys <- mapB
187
186
},
188
187
}
189
- Tools .Init (requiredToolsAPILevel )
188
+ Tools .Init ()
190
189
191
190
// Let's handle the config
192
191
configDir := config .GetDefaultConfigDir ()
Original file line number Diff line number Diff line change @@ -56,27 +56,12 @@ type Tools struct {
56
56
}
57
57
58
58
// 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 () {
60
60
createDir (t .Directory )
61
61
t .mutex .Lock ()
62
62
t .installed = make (map [string ]string )
63
63
t .mutex .Unlock ()
64
64
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
- }
80
65
}
81
66
82
67
// GetLocation extracts the toolname from a command like
You can’t perform that action at this time.
0 commit comments