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);
Set-up
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.hThis causes implicit declaration warnings when attempting to use the function in other parts of the application.
Steps to Reproduce:
S2LPPktStackSeqNumForReload(uint8_t cReloadValue)in your application.Proposed Fix:
Add the following function prototype in the header file: