Skip to content

Commit 12aed64

Browse files
committed
added trapping for additional avrdude errors
some errors were not being caught and the user was not being notified.
1 parent fbc5d30 commit 12aed64

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: app/src/processing/app/debug/Uploader.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,11 @@ public void message(String s) {
215215
}
216216
if (s.indexOf("Programmer is not responding") != -1 ||
217217
s.indexOf("programmer is not responding") != -1 ||
218-
s.indexOf("protocol error") != -1) {
218+
s.indexOf("protocol error") != -1 ||
219+
s.indexOf("avrdude: ser_open(): can't open device") != -1 ||
220+
s.indexOf("avrdude: ser_drain(): read error") != -1 ||
221+
s.indexOf("avrdude: ser_send(): write error") != -1 ||
222+
s.indexOf("avrdude: error: buffered memory access not supported.") != -1) {
219223
exception = new RunnerException(_("Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions."));
220224
return;
221225
}

0 commit comments

Comments
 (0)