8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64ed47e commit a045e59Copy full SHA for a045e59
utils/utils.go
@@ -55,13 +55,13 @@ func GetCompatibleWith(name string) map[string][]firmware {
55
exePath, _ := os.Executable()
56
root := filepath.Dir(exePath)
57
root = filepath.Join(root, "firmwares")
58
+ loader := regexp.MustCompile(knownBoards[name].loader)
59
+ fw := regexp.MustCompile(knownBoards[name].match)
60
61
err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
62
unixPath := filepath.ToSlash(path)
63
parts := strings.Split(unixPath, "/")
64
fancyName := parts[len(parts)-3] + " " + parts[len(parts)-2]
- loader := regexp.MustCompile(knownBoards[name].loader)
- fw := regexp.MustCompile(knownBoards[name].match)
65
f := firmware{
66
Path: path,
67
Name: fancyName,
0 commit comments