File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ import (
27
27
"time"
28
28
29
29
"github.com/arduino/arduino-cli/arduino"
30
+ "github.com/arduino/arduino-cli/arduino/cores"
30
31
"github.com/arduino/arduino-cli/arduino/cores/packagemanager"
31
32
"github.com/arduino/arduino-cli/arduino/discovery"
32
33
"github.com/arduino/arduino-cli/arduino/httpclient"
@@ -124,13 +125,19 @@ func identify(pme *packagemanager.Explorer, port *discovery.Port) ([]*rpc.BoardL
124
125
// first query installed cores through the Package Manager
125
126
logrus .Debug ("Querying installed cores for board identification..." )
126
127
for _ , board := range pme .IdentifyBoard (port .Properties ) {
128
+ fqbn , err := cores .ParseFQBN (board .FQBN ())
129
+ if err != nil {
130
+ return nil , & arduino.InvalidFQBNError {Cause : err }
131
+ }
132
+ fqbn .Configs = board .IdentifyBoardConfiguration (port .Properties )
133
+
127
134
// We need the Platform maintaner for sorting so we set it here
128
135
platform := & rpc.Platform {
129
136
Maintainer : board .PlatformRelease .Platform .Package .Maintainer ,
130
137
}
131
138
boards = append (boards , & rpc.BoardListItem {
132
139
Name : board .Name (),
133
- Fqbn : board . FQBN (),
140
+ Fqbn : fqbn . String (),
134
141
Platform : platform ,
135
142
})
136
143
}
You can’t perform that action at this time.
0 commit comments