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 5e38b04 commit 2ccbd62Copy full SHA for 2ccbd62
main.go
@@ -34,7 +34,7 @@ var (
34
rtos_compliance_offset = flag.Int("rtos_fw_pos", 0, "RTOS FW ID offset")
35
)
36
37
-const Version = "2.2.1"
+const Version = "2.2.2"
38
39
const dfu_flags = "-d,8087:0ABA"
40
const rtos_firmware = "quark.bin"
@@ -201,7 +201,14 @@ func main_load() {
201
}
202
203
204
- firmwarePath := *core
+ firmwarePath, _ := os.Executable()
205
+ firmwarePath = filepath.Join(filepath.Dir(firmwarePath), "firmwares")
206
+
207
+ if stat, err := os.Stat(*core); err == nil && stat.IsDir() {
208
+ firmwarePath = *core
209
+ } else {
210
+ firmwarePath = filepath.Join(firmwarePath, *core)
211
+ }
212
213
if needUpdateBLE || *force == true {
214
0 commit comments