Make error codes looks like literals in the code of them (easy for searching). Minor fixes, typos

This commit is contained in:
Anton Maklakov
2017-11-06 18:22:45 +08:00
committed by Angus Gratton
parent 3d89c8ba74
commit 046ff2e628
4 changed files with 6 additions and 7 deletions

View File

@@ -41,7 +41,7 @@ static const char* TAG = "event";
do{\
esp_err_t __err = (api_call);\
if ((ret) != __err) {\
ESP_LOGE(TAG, "%s %d %s ret=%d", __FUNCTION__, __LINE__, (info), __err);\
ESP_LOGE(TAG, "%s %d %s ret=0x%X", __FUNCTION__, __LINE__, (info), __err);\
return __err;\
}\
} while(0)