Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 2 additions & 18 deletions command/device/listfqbn.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,6 @@ const (
esp8266Package = "esp8266"
)

var (
// this is temporary... it will be removed when
// https://github.com/arduino/arduino-cloud-cli/pull/74/files#diff-d891696d5c17ea0eecc6b1c23802cbaf553379e701c5e0e1ff23ee0d26d2877cR27-R39
// will be merged
compatibleArduinoFQBN = []string{
"arduino:samd:nano_33_iot",
"arduino:samd:mkrwifi1010",
"arduino:mbed_nano:nanorp2040connect",
"arduino:mbed_portenta:envie_m7",
"arduino:samd:mkr1000",
"arduino:samd:mkrgsm1400",
"arduino:samd:mkrnb1500",
"arduino:samd:mkrwan1310",
"arduino:samd:mkrwan1300",
}
)

// FQBNInfo contains the details of a FQBN.
type FQBNInfo struct {
Value string `json:"fqbn"`
Expand Down Expand Up @@ -90,7 +73,8 @@ func filterFQBN(ls []FQBNInfo) []FQBNInfo {
filtered = append(filtered, fqbn)

case arduinoPackage:
for _, b := range compatibleArduinoFQBN {
compatible := append(cryptoFQBN, loraFQBN...)
for _, b := range compatible {
if fqbn.Value == b {
filtered = append(filtered, fqbn)
break
Expand Down