[tuxdroid-svn] r79 - softwares/bootloader/trunk
Status: Beta
Brought to you by:
ks156
From: admin <c2m...@c2...> - 2007-02-26 12:19:35
|
Author: jaguarondi Date: 2007-02-22 01:21:22 +0100 (Thu, 22 Feb 2007) New Revision: 79 Modified: softwares/bootloader/trunk/main.c Log: - UPD: improved the pretend usage - UPD: added one verbose message when checking for the dongle bootloading mode at startup Modified: softwares/bootloader/trunk/main.c =================================================================== --- softwares/bootloader/trunk/main.c 2007-02-21 13:33:00 UTC (rev 78) +++ softwares/bootloader/trunk/main.c 2007-02-22 00:21:22 UTC (rev 79) @@ -64,7 +64,7 @@ fprintf (stream, " -m --main Reprogram tuxcore and tuxaudio (flash and eeprom) with hex files located in path.\n" " -a --all Reprogram all cpu's with hex files located in path.\n" - " -p --pretend Don't reprogram but check all files.\n" + " -p --pretend Don't do the programming, just simulates.\n" " -h --help Display this usage information.\n" " -v --verbose Print verbose messages.\n" " -V --version Print the version number.\n" @@ -272,7 +272,13 @@ if (pretend) return 0; /* Check if the dongle is already in bootloader mode */ - ret = system("dfu-programmer at89c5130 get bootloader-version 2> /dev/null"); + if (verbose) + { + fprintf(stdout,"Testing if the dongle is already in bootloader mode. If it is not, 'no device present' will be reported, don't worry about it\n"); + ret = system("dfu-programmer at89c5130 get bootloader-version"); + } + else + ret = system("dfu-programmer at89c5130 get bootloader-version 2> /dev/null"); if (ret) { fux_connect(); |