diff --git a/src/fsw_spacewire.c b/src/fsw_spacewire.c --- a/src/fsw_spacewire.c +++ b/src/fsw_spacewire.c @@ -707,6 +707,16 @@ rtems_timer_service_routine timecode_tim unsigned int check_timecode_and_previous_timecode_coherency(unsigned char currentTimecodeCtr) { + /** This function checks the coherency between the incoming timecode and the last valid timecode. + * + * @param currentTimecodeCtr is the incoming timecode + * + * @return returned codes:: + * - LFR_DEFAULT + * - LFR_SUCCESSFUL + * + */ + static unsigned char firstTickout = 1; unsigned char ret; diff --git a/src/tc_handler.c b/src/tc_handler.c --- a/src/tc_handler.c +++ b/src/tc_handler.c @@ -665,11 +665,11 @@ int enter_mode_normal( unsigned int tran } break; case LFR_MODE_SBM1: - restart_asm_activities( LFR_MODE_NORMAL ); // this is necessary to restart ASM tasks to update the parameters + restart_asm_activities( LFR_MODE_NORMAL ); // this is necessary to restart ASM tasks to update the parameters status = LFR_SUCCESSFUL; // lfrCurrentMode will be updated after the execution of close_action break; case LFR_MODE_SBM2: - restart_asm_activities( LFR_MODE_NORMAL ); // this is necessary to restart ASM tasks to update the parameters + restart_asm_activities( LFR_MODE_NORMAL ); // this is necessary to restart ASM tasks to update the parameters status = LFR_SUCCESSFUL; // lfrCurrentMode will be updated after the execution of close_action break; default: