Index: firmware/App/Modes/ModeInitPOST.c =================================================================== diff -u -r43ec4d03e577681a98ea4ed58082ffd6ab012fd3 -rf308cc4c35eab630ebbbde405cfe47d049afeafb --- firmware/App/Modes/ModeInitPOST.c (.../ModeInitPOST.c) (revision 43ec4d03e577681a98ea4ed58082ffd6ab012fd3) +++ firmware/App/Modes/ModeInitPOST.c (.../ModeInitPOST.c) (revision f308cc4c35eab630ebbbde405cfe47d049afeafb) @@ -15,6 +15,7 @@ * ***************************************************************************/ +#include "Accel.h" #include "CPLD.h" #include "FPGA.h" #include "OperationModes.h" @@ -87,8 +88,9 @@ { case DG_POST_STATE_START: postState = DG_POST_STATE_FPGA; - // FOR TESTING REMOVE - //postState = POST_STATE_TEMPERATURE_SENSORS; +#ifdef SKIP_POST + postState = DG_POST_STATE_COMPLETED; +#endif break; case DG_POST_STATE_FPGA: @@ -106,6 +108,13 @@ postState = handlePOSTStatus( testStatus ); break; + case DG_POST_STATE_ACCELEROMETER: +#ifndef DISABLE_ACCELS + testStatus = execAccelTest(); +#else + testStatus = SELF_TEST_STATUS_PASSED; +#endif + case DG_POST_STATE_PRESSURES: testStatus = execPressureSelfTest(); postState = handlePOSTStatus( testStatus ); @@ -185,7 +194,7 @@ * @details * Inputs : postPassed * Outputs : none - * @param testStatus + * @param testStatus status reported by last test * @return recommended next POST state *************************************************************************/ static DG_POST_STATE_T handlePOSTStatus( SELF_TEST_STATUS_T testStatus )