Skip to content

Commit 37fed5c

Browse files
author
Jenna Fox
committed
Merge pull request micronucleus#29 from nixnax/patch-1
Update micronucleus host-side library - more detailed error reporting
2 parents bedfbdd + 86c9443 commit 37fed5c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

commandline/examples/micronucleus.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ int main(int argc, char **argv) {
237237
printf(">> Reconnected! Continuing upload sequence...\n");
238238

239239
} else if (res != 0) {
240-
printf(">> Abort mission! %d error has occured ...\n", res);
240+
printf(">> Flash erase error %d has occured ...\n", res);
241241
printf(">> Please unplug the device and restart the program.\n");
242242
return EXIT_FAILURE;
243243
}
@@ -247,7 +247,7 @@ int main(int argc, char **argv) {
247247
setProgressData("writing", 5);
248248
res = micronucleus_writeFlash(my_device, endAddress, dataBuffer, printProgress);
249249
if (res != 0) {
250-
printf(">> Abort mission! An error has occured ...\n");
250+
printf(">> Flash write error %d has occured ...\n", res);
251251
printf(">> Please unplug the device and restart the program.\n");
252252
return EXIT_FAILURE;
253253
}
@@ -261,7 +261,7 @@ int main(int argc, char **argv) {
261261
res = micronucleus_startApp(my_device);
262262

263263
if (res != 0) {
264-
printf(">> Abort mission! An error has occured ...\n");
264+
printf(">> Run error %d has occured ...\n", res);
265265
printf(">> Please unplug the device and restart the program. \n");
266266
return EXIT_FAILURE;
267267
}

0 commit comments

Comments
 (0)