Skip to content

Commit 0e56cdc

Browse files
committed
Add core flag to keep the tool tidy
1 parent 37b2a89 commit 0e56cdc

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed
File renamed without changes.
File renamed without changes.

main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ var (
2222
quiet = flag.Bool("q", true, "Show quiet logging")
2323
force = flag.Bool("f", false, "Force firmware update")
2424
copier = flag.Bool("c", false, "Copy bin_file to bin_save")
25+
core = flag.String("core", "", "Core version")
2526
from = flag.String("from", "", "Original file location")
2627
to = flag.String("to", "", "Save file location")
2728
dfu_path = flag.String("dfu", "", "Location of dfu-util binaries")
@@ -195,7 +196,7 @@ func main_load() {
195196
}
196197

197198
executablePath, _ := osext.ExecutableFolder()
198-
firmwarePath := executablePath + "/firmwares/"
199+
firmwarePath := executablePath + "/firmwares/" + *core + "/"
199200

200201
// Save verbose flag
201202
verbose_user := *verbose

0 commit comments

Comments
 (0)