Skip to content

Commit 033c374

Browse files
Brian Baltzfacchinm
Brian Baltz
authored andcommitted
Add more diagnostic messages
Signed-off-by: Brian Baltz <[email protected]>
1 parent 87ec9cb commit 033c374

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

main.go

+5-3
Original file line numberDiff line numberDiff line change
@@ -130,17 +130,19 @@ func main_load(args []string) {
130130
}
131131

132132
// check for BLE library compliance
133+
PrintlnVerbose("Verifying BLE version:", ble_compliance_string)
133134
found := searchBLEversionInDFU(tmpfile.Name(), ble_compliance_string)
134135

135136
// remove the temporary file
136137
os.Remove(tmpfile.Name())
137138

138139
if !found {
139-
fmt.Println("BLE firmware version is not in sync with CurieBLE library")
140-
fmt.Println("Update it using \"Burn Bootloader\" menu")
140+
fmt.Println("!! BLE firmware version is not in sync with CurieBLE library !!")
141+
fmt.Println("* Set Programmer to \"Arduino/Genuino 101 Firmware Updater\"")
142+
fmt.Println("* Update it using \"Burn Bootloader\" menu")
141143
os.Exit(1)
142144
}
143-
145+
PrintlnVerbose("BLE version: verified")
144146
}
145147

146148
dfu_download := []string{dfu, dfu_flags, "-D", bin_file_name, "-v", "--alt", "7", "-R"}

0 commit comments

Comments
 (0)