New panel design
This commit is contained in:
1 parent
face2432e4
commit
b5d6b4a897
30 files changed
+4540
-171
No files matched your search
@@ -0,0 +1,28 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "esp_err.h"
|
||||
|
||||
const char *esp_err_to_name(esp_err_t code)
|
||||
{
|
||||
switch (code) {
|
||||
case ESP_OK: return "ESP_OK";
|
||||
case ESP_FAIL: return "ESP_FAIL";
|
||||
case ESP_ERR_NO_MEM: return "ESP_ERR_NO_MEM";
|
||||
case ESP_ERR_INVALID_ARG: return "ESP_ERR_INVALID_ARG";
|
||||
case ESP_ERR_INVALID_STATE: return "ESP_ERR_INVALID_STATE";
|
||||
case ESP_ERR_INVALID_SIZE: return "ESP_ERR_INVALID_SIZE";
|
||||
case ESP_ERR_NOT_FOUND: return "ESP_ERR_NOT_FOUND";
|
||||
case ESP_ERR_NOT_SUPPORTED: return "ESP_ERR_NOT_SUPPORTED";
|
||||
case ESP_ERR_TIMEOUT: return "ESP_ERR_TIMEOUT";
|
||||
case ESP_ERR_INVALID_RESPONSE: return "ESP_ERR_INVALID_RESPONSE";
|
||||
default: return "ESP_ERR_UNKNOWN";
|
||||
}
|
||||
}
|
||||
|
||||
void esp_error_check_failed(esp_err_t rc, const char *file, int line, const char *expr)
|
||||
{
|
||||
fprintf(stderr, "ESP_ERROR_CHECK failed: %s (0x%x) at %s:%d\n expression: %s\n",
|
||||
esp_err_to_name(rc), rc, file, line, expr);
|
||||
abort();
|
||||
}
|
||||
Reference in new issue
Block a user