Skip to content

Missing declaration of function in header file | S2LP Library #12

@roshangeoroy

Description

@roshangeoroy

Set-up

  • Hardware: NUCLEOF401RE with S2868A2 expansion board
  • Software: STM CUBE IDE 1.15.0

The Bug
The function void S2LPPktStackSeqNumForReload(uint8_t cReloadValue) in the file: S2LP_PktStack.c is not declared in the corresponding header file: S2LP_PktStack.h

This causes implicit declaration warnings when attempting to use the function in other parts of the application.


Steps to Reproduce:

  • Build an example project (eg. S2868A2_P2P)
  • Add the function S2LPPktStackSeqNumForReload(uint8_t cReloadValue) in your application.
  • Compile the project.
  • Observe the warning: "implicit declaration of function 'S2LPPktStackSeqNumForReload'".

Proposed Fix:
Add the following function prototype in the header file:

/**
 * @brief Function to reload the sequence number.
 * @param cReloadValue: Reload value for the sequence number.
 * @retval None
 */
void S2LPPktStackSeqNumForReload(uint8_t cReloadValue);

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions