In the app_timer event there is always this code: "UNUSED_PARAMETER(X)". For what is this good?
In the app_timer event there is always this code: "UNUSED_PARAMETER(X)". For what is this good?
Hi,
The SDK functions have a convention of which variables to send to the event handlers, but sometimes the context or event pointer is not strictly needed. To avoid "Unused variable" warnings by static analyzers or very strict compilers, the variables are casted to (void) by using this macro.