Skip to content

Commit 18e465c

Browse files
Paolo Calaopolldo
Paolo Calao
authored andcommitted
Derive supported boards from existing lists (#80)
1 parent 08befc7 commit 18e465c

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

command/device/listfqbn.go

+2-18
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,6 @@ const (
3131
esp8266Package = "esp8266"
3232
)
3333

34-
var (
35-
// this is temporary... it will be removed when
36-
// https://github.com/arduino/arduino-cloud-cli/pull/74/files#diff-d891696d5c17ea0eecc6b1c23802cbaf553379e701c5e0e1ff23ee0d26d2877cR27-R39
37-
// will be merged
38-
compatibleArduinoFQBN = []string{
39-
"arduino:samd:nano_33_iot",
40-
"arduino:samd:mkrwifi1010",
41-
"arduino:mbed_nano:nanorp2040connect",
42-
"arduino:mbed_portenta:envie_m7",
43-
"arduino:samd:mkr1000",
44-
"arduino:samd:mkrgsm1400",
45-
"arduino:samd:mkrnb1500",
46-
"arduino:samd:mkrwan1310",
47-
"arduino:samd:mkrwan1300",
48-
}
49-
)
50-
5134
// FQBNInfo contains the details of a FQBN.
5235
type FQBNInfo struct {
5336
Value string `json:"fqbn"`
@@ -90,7 +73,8 @@ func filterFQBN(ls []FQBNInfo) []FQBNInfo {
9073
filtered = append(filtered, fqbn)
9174

9275
case arduinoPackage:
93-
for _, b := range compatibleArduinoFQBN {
76+
compatible := append(cryptoFQBN, loraFQBN...)
77+
for _, b := range compatible {
9478
if fqbn.Value == b {
9579
filtered = append(filtered, fqbn)
9680
break

0 commit comments

Comments
 (0)