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/commands"
@@ -124,13 +125,19 @@ func identify(pm *packagemanager.PackageManager, port *discovery.Port) ([]*rpc.B
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 pm .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