Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/snapshot-module.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Snapshot CFS module

on:
workflow_dispatch:
inputs:
base-branch:
description: 'The base branch to merge into'
type: string
required: false
default: 'main'
ic-branch:
description: 'The temporary integration branch to create (ic)'
type: string
required: false
default: 'ic-snapshot-dev'
dev-branch:
description: 'The branch to pull in'
type: string
required: false
default: 'dev'
pr-label:
description: 'The label(s) to apply to the generated PR'
type: string
required: false
default: ''
version-numbers:
description: 'The pending version/tag info, as a JSON object'
type: string
required: false
default: '{}'

jobs:
snapshot-module:
name: Snapshot module
uses: nasa/cFS/.github/workflows/snapshot-module-reusable.yml@dev
with:
base-branch: ${{ inputs.base-branch }}
ic-branch: ${{ inputs.ic-branch }}
dev-branch: ${{ inputs.dev-branch }}
pr-label: ${{ inputs.pr-label }}
version-numbers: ${{ inputs.version-numbers }}
3 changes: 1 addition & 2 deletions fsw/src/cf_cfdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ bool CF_CFDP_CheckAckNakCount(CF_Transaction_t *txn, uint8 *counter)
uint16 Event;

/* Check limit and handle if needed */
Event = 0;
is_ok = (*counter < chan->config.ack_limit);

if (is_ok)
Expand Down Expand Up @@ -1259,7 +1258,7 @@ static int32 CF_CFDP_DoEngineChannelInit(CF_Engine_t *engine_ptr, CF_Channel_t *
int k;
const int chan_idx = CF_ChannelSelect_AsIndex(CF_GetChannelFromPtr(chan));
char nbuf[64];
CFE_Status_t ret = CFE_SUCCESS;
CFE_Status_t ret;

/* selectively wipe data within the channel struct -
* note this struct also contains the config which is already
Expand Down
8 changes: 4 additions & 4 deletions fsw/src/cf_cfdp_r.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ CFE_Status_t CF_CFDP_R_ProcessFd(CF_Transaction_t *txn, CF_Logical_PduBuffer_t *
*-----------------------------------------------------------------*/
void CF_CFDP_R_SubstateRecvEof(CF_Transaction_t *txn, CF_Logical_PduBuffer_t *ph)
{
CFE_Status_t ret = CFE_SUCCESS;
CFE_Status_t ret;
const CF_Logical_PduEof_t *eof;
CF_Channel_t *chan = CF_GetChannelFromTxn(txn);

Expand Down Expand Up @@ -947,7 +947,7 @@ CF_RxSubState_t CF_CFDP_R_CheckState_VALIDATE(CF_Transaction_t *txn)
*-----------------------------------------------------------------*/
CF_RxSubState_t CF_CFDP_R_CheckState_FILESTORE(CF_Transaction_t *txn)
{
CF_RxSubState_t next_state = txn->state_data.sub_state;
CF_RxSubState_t next_state;

/* This applies the retention policy based on whether the transaction was successful */
/* It sets flags in the txn state if it fails (which will then be sent in the FIN) */
Expand Down Expand Up @@ -1010,8 +1010,8 @@ CF_RxSubState_t CF_CFDP_R_CheckState_FINACK(CF_Transaction_t *txn)
*-----------------------------------------------------------------*/
void CF_CFDP_R_CheckState(CF_Transaction_t *txn)
{
CF_RxSubState_t next_state = txn->state_data.sub_state;
CF_Channel_t *chan = CF_GetChannelFromTxn(txn);
CF_RxSubState_t next_state;
CF_Channel_t *chan = CF_GetChannelFromTxn(txn);

/* State transitions are done here */
switch (txn->state_data.sub_state)
Expand Down
8 changes: 4 additions & 4 deletions fsw/src/cf_cfdp_s.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
*-----------------------------------------------------------------*/
CFE_Status_t CF_CFDP_S_SendFileData(CF_Transaction_t *txn, uint32 foffs, uint32 bytes_to_read, uint8 calc_crc)
{
int32 status = 0;
int32 status;
CFE_Status_t ret;
CF_Engine_t *engine_ptr = CF_GetEngine();
CF_Logical_PduBuffer_t *ph = CF_CFDP_ConstructPduHeader(txn,
Expand Down Expand Up @@ -808,7 +808,7 @@ CF_TxSubState_t CF_CFDP_S_CheckState_DATA_EOF(CF_Transaction_t *txn)
*-----------------------------------------------------------------*/
CF_TxSubState_t CF_CFDP_S_CheckState_FILESTORE(CF_Transaction_t *txn)
{
CF_TxSubState_t next_state = txn->state_data.sub_state;
CF_TxSubState_t next_state;

/* This applies the retention policy based on whether the transaction was successful */
/* It uses data received in the FIN */
Expand All @@ -826,8 +826,8 @@ CF_TxSubState_t CF_CFDP_S_CheckState_FILESTORE(CF_Transaction_t *txn)
*-----------------------------------------------------------------*/
void CF_CFDP_S_CheckState(CF_Transaction_t *txn)
{
CF_TxSubState_t next_state = txn->state_data.sub_state;
CF_Channel_t *chan = CF_GetChannelFromTxn(txn);
CF_TxSubState_t next_state;
CF_Channel_t *chan = CF_GetChannelFromTxn(txn);

/* State transitions are done here */
switch (txn->state_data.sub_state)
Expand Down
3 changes: 1 addition & 2 deletions fsw/src/cf_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1719,8 +1719,7 @@ static CFE_Status_t CF_GetSet_DoParam(CF_GetSetParam_Context_t *ctxt,
uint16 event_id;
char msg_buffer[32];

saved_value = 0;
chan_num = CF_GetChannelFromPtr(chan);
chan_num = CF_GetChannelFromPtr(chan);

switch (param_sz)
{
Expand Down