Use ESP_ERROR_HECK where appropriate
In several places in the ESP32-specific code, we do
if (const auto res = esp_API(); res != ESP_OK) {
ESP_LOGE("MSG", "Error: %s", some_to_string_api(res));
}
That can also be achieved by ESP_ERROR_CHECK
In several places in the ESP32-specific code, we do
if (const auto res = esp_API(); res != ESP_OK) {
ESP_LOGE("MSG", "Error: %s", some_to_string_api(res));
}
That can also be achieved by ESP_ERROR_CHECK