From 455a7784a919f8404941a89dd0284ef690aeda3b Mon Sep 17 00:00:00 2001 From: Neil Kolban Date: Mon, 13 Feb 2017 23:03:04 -0600 Subject: [PATCH] Update to ESP_ERROR_CHECK See request from ESP_Angus here: https://esp32.com/viewtopic.php?f=18&t=1179 Merges #339 https://github.com/espressif/esp-idf/pull/339 --- components/esp32/include/esp_err.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp32/include/esp_err.h b/components/esp32/include/esp_err.h index b6a1e8b42..059b59735 100644 --- a/components/esp32/include/esp_err.h +++ b/components/esp32/include/esp_err.h @@ -45,7 +45,7 @@ typedef int32_t esp_err_t; * and terminate the program in case the code is not ESP_OK. * Prints the failed statement to serial output. */ -#define ESP_ERROR_CHECK(x) do { esp_err_t rc = (x); if (rc != ESP_OK) { assert(0 && #x);} } while(0); +#define ESP_ERROR_CHECK(x) do { esp_err_t rc = (x); if (rc != ESP_OK) { ESP_LOGE("err", "esp_err_t = %d", rc); assert(0 && #x);} } while(0); #ifdef __cplusplus }