nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ ZB_ERROR_CHECK

#define ZB_ERROR_CHECK ( ERR_CODE)

#include <include/zigbee/zigbee_error_handler.h>

Value:
do { \
const uint32_t LOCAL_ERR_CODE = (uint32_t) (-ERR_CODE); \
if (LOCAL_ERR_CODE != RET_OK) { \
LOG_ERR("ERROR %u [%s] at %s:%u", \
LOCAL_ERR_CODE, \
zb_error_to_string_get(LOCAL_ERR_CODE), \
__FILE__, \
__LINE__); \
zb_osif_abort(); \
} \
} while (0)

Macro for calling the error handler function if the supplied ZBOSS return code is different than RET_OK.

Parameters
[in]ERR_CODEError code supplied to the error handler.