This commit is contained in:
oarcher 2024-07-21 02:21:56 +02:00
parent d85c645c23
commit cd363d104e
2 changed files with 8 additions and 8 deletions

View file

@ -9,13 +9,6 @@
#include <esp_idf_version.h>
#include <esp_task_wdt.h>
#define ESPHL_ERROR_CHECK(err, message) \
if ((err) != ESP_OK) { \
ESP_LOGE(TAG, message ": (%d) %s", err, esp_err_to_name(err)); \
this->mark_failed(); \
return; \
}
namespace esphome {
namespace modem {
@ -48,4 +41,4 @@ class Watchdog {
} // namespace modem
} // namespace esphome
#endif // USE_ESP_IDF
#endif // USE_ESP_IDF

View file

@ -20,6 +20,13 @@
#include <cstring>
#include <iostream>
#define ESPHL_ERROR_CHECK(err, message) \
if ((err) != ESP_OK) { \
ESP_LOGE(TAG, message ": (%d) %s", err, esp_err_to_name(err)); \
this->mark_failed(); \
return; \
}
static const size_t CONFIG_MODEM_UART_RX_BUFFER_SIZE = 2048;
static const size_t CONFIG_MODEM_UART_TX_BUFFER_SIZE = 1024;
static const uint8_t CONFIG_MODEM_UART_EVENT_QUEUE_SIZE = 30;