# HG changeset patch # User paul # Date 2016-01-22 16:20:58 # Node ID 0e4f9f3e6a3fa39780087af5ccda680c8f085e3b # Parent 43d4aa6b88297e598c24445a2369275ca88320a4 3.0.0.13 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: