ESP_RETURN_ON_ERROR_ISR macro
A version of ESP_RETURN_ON_ERROR() macro that can be called from ISR.
Syntax
#define ESP_RETURN_ON_ERROR_ISR(x, log_tag, format, ...) do { \
esp_err_t err_rc_ = (x); \
if (unlikely(err_rc_ != ESP_OK)) { \
ESP_EARLY_LOGE(log_tag, "%s(%d): " format, __FUNCTION__, __LINE__, ##__VA_ARGS__); \
return err_rc_; \
} \
} while(0)
Examples
ESP_RETURN_ON_ERROR_ISR is referenced by 5 libraries and example projects: