Make full demo exit on error

This commit is contained in:
Alfred Gedeon 2021-05-28 14:44:06 -07:00 committed by alfred gedeon
parent aed7209b7a
commit e84fc19966
3 changed files with 57 additions and 18 deletions

View file

@ -65,16 +65,18 @@
/* Local includes. */
#include "console.h"
#define BLINKY_DEMO 0
#define FULL_DEMO 1
#define mainSELECTED_APPLICATION BLINKY_DEMO
#ifdef BUILD_DIR
#define BUILD BUILD_DIR
#else
#define BUILD "./"
#endif
#ifdef USER_DEMO
#define mainSELECTED_APPLICATION USER_DEMO
#else
#define BLINKY_DEMO 0
#define FULL_DEMO 1
#define mainSELECTED_APPLICATION FULL_DEMO
#endif
/* This demo uses heap_3.c (the libc provided malloc() and free()). */
@ -132,8 +134,6 @@ static BaseType_t xTraceRunning = pdTRUE;
/*-----------------------------------------------------------*/
int main( void )
{
/* SIGINT is not blocked by the posix port */
@ -418,6 +418,5 @@ void handle_sigint( int signal )
{
printf( "chdir into %s error is %d\n", BUILD, errno );
}
exit( 1 );
exit( 2 );
}