diff options
author | nixnax <nixnax@caraudio.com> | 2013-09-03 13:03:15 -0500 |
---|---|---|
committer | nixnax <nixnax@caraudio.com> | 2013-09-03 13:03:15 -0500 |
commit | 86c9443631a7df226d34afae6888ff6f48c9f32b (patch) | |
tree | dc0fd95fa992bc123b121a0d5317928947c59777 /commandline/examples | |
parent | bedfbdda7da712b8795d66d5c65cce18650f3d76 (diff) | |
download | micronucleus-86c9443631a7df226d34afae6888ff6f48c9f32b.tar.gz micronucleus-86c9443631a7df226d34afae6888ff6f48c9f32b.tar.bz2 micronucleus-86c9443631a7df226d34afae6888ff6f48c9f32b.zip |
Update micronucleus.c
More error details upon flash erase/write failures.
Diffstat (limited to 'commandline/examples')
-rw-r--r-- | commandline/examples/micronucleus.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/commandline/examples/micronucleus.c b/commandline/examples/micronucleus.c index 7f5fd8c..dc567da 100644 --- a/commandline/examples/micronucleus.c +++ b/commandline/examples/micronucleus.c @@ -237,7 +237,7 @@ int main(int argc, char **argv) { printf(">> Reconnected! Continuing upload sequence...\n"); } else if (res != 0) { - printf(">> Abort mission! %d error has occured ...\n", res); + printf(">> Flash erase error %d has occured ...\n", res); printf(">> Please unplug the device and restart the program.\n"); return EXIT_FAILURE; } @@ -247,7 +247,7 @@ int main(int argc, char **argv) { setProgressData("writing", 5); res = micronucleus_writeFlash(my_device, endAddress, dataBuffer, printProgress); if (res != 0) { - printf(">> Abort mission! An error has occured ...\n"); + printf(">> Flash write error %d has occured ...\n", res); printf(">> Please unplug the device and restart the program.\n"); return EXIT_FAILURE; } @@ -261,7 +261,7 @@ int main(int argc, char **argv) { res = micronucleus_startApp(my_device); if (res != 0) { - printf(">> Abort mission! An error has occured ...\n"); + printf(">> Run error %d has occured ...\n", res); printf(">> Please unplug the device and restart the program. \n"); return EXIT_FAILURE; } |