/* Function for error handling, which is called when an error has occurred.  */
void app_error_handler(ret_code_t error_code, uint32_t line_num, const uint8_t *p_file_name)
/* Function for error handling, which is called when an error has occurred.  */
void app_error_handler(ret_code_t error_code, uint32_t line_num, const uint8_t *p_file_name)
{
    error_info_t error_info =
    {
        .line_num    = line_num,
        .p_file_name = p_file_name,
        .err_code    = error_code,
    };
    app_error_fault_handler(NRF_FAULT_ID_SDK_ERROR, 0, (uint32_t)(&error_info));
    UNUSED_VARIABLE(error_info);
}