Skip to content

Derive supported boards from existing lists #80

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 13, 2021
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