mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-09-28 20:09:12 +03:00
return LIBAVRDUDE_EXIT instead of exit(0)
This commit is contained in:
@@ -59,6 +59,7 @@ typedef uint32_t pinmask_t;
|
||||
#define LIBAVRDUDE_NOTSUPPORTED (-2) // operation not supported
|
||||
#define LIBAVRDUDE_SOFTFAIL (-3) // returned, eg, by avr_signature() if caller
|
||||
// might proceed with chip erase
|
||||
#define LIBAVRDUDE_EXIT (-4) // End all operations in this session
|
||||
|
||||
/* formerly lists.h */
|
||||
|
||||
|
||||
@@ -557,7 +557,7 @@ static int teensy_parseextparams(const PROGRAMMER *pgm, const LISTID xparams) {
|
||||
msg_error(" -xwait Wait for the device to be plugged in if not connected\n");
|
||||
msg_error(" -xwait=<arg> Wait <arg> [s] for the device to be plugged in if not connected\n");
|
||||
msg_error(" -xhelp Show this help menu and exit\n");
|
||||
exit(0);
|
||||
return LIBAVRDUDE_EXIT;;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user