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