Closed ombhilare999 closed 4 years ago
@laukik-hase Isn't there a ERROR_FUNCTION_CHECK from ESP that does this
if (err == ESP_OK )
?
Should I use this then @laukik-hase ?
ESP_ERROR_CHECK(x)
Macro which can be used to check the error code, and terminate the program in case the code is not ESP_OK. Prints the error code, error location, and the failed statement to serial output.
@laukik-hase Lets take up this activity of code improvement in the next round since majority of code has checks like these
I am closing this pull request for now as further code optimizations will be done in the next round.
@laukik-hase Isn't there a ERROR_FUNCTION_CHECK from ESP that does this
if (err == ESP_OK )
?