Skip to content

Commit b4a0bda

Browse files
committed
Rework error message and add workaround message
1 parent 1f820d4 commit b4a0bda

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

main.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ func main() {
6969
fmt.Println(err)
7070
os.Exit(1)
7171
}
72+
if counter == 4 {
73+
fmt.Println("Flashing is taking longer than expected")
74+
fmt.Println("Try pressing MASTER_RESET button")
75+
}
7276
if strings.Contains(string(out), "sensor_core") {
7377
board_found = true
7478
PrintlnVerbose("Device found!")
@@ -111,7 +115,7 @@ func main() {
111115
fmt.Println("SUCCESS: Sketch will execute in about 5 seconds.")
112116
os.Exit(0)
113117
} else {
114-
fmt.Println("ERROR: Timed out waiting for Arduino 101 on" + com_port)
118+
fmt.Println("ERROR: Upload failed on " + com_port)
115119
os.Exit(1)
116120
}
117121
}

0 commit comments

Comments
 (0)