using esphome::esp_log_printf_

This commit is contained in:
oarcher 2024-05-13 15:41:55 +02:00
parent d858ca6e46
commit 3f02b4a930
2 changed files with 5 additions and 4 deletions

View file

@ -1,4 +1,4 @@
#if defined(USE_ESP32) || defined(USE_ESP_IDF) #ifdef USE_ESP_IDF
#include "gsm_component.h" #include "gsm_component.h"
#include "esphome/core/log.h" #include "esphome/core/log.h"
#include "esphome/core/application.h" #include "esphome/core/application.h"
@ -6,7 +6,6 @@
#include "esphome/components/network/util.h" #include "esphome/components/network/util.h"
#include <esp_netif.h> #include <esp_netif.h>
#include <esp_netif_ppp.h> #include <esp_netif_ppp.h>
#include <esp_log.h>
#include <esp_event.h> #include <esp_event.h>
#include <cxx_include/esp_modem_dte.hpp> #include <cxx_include/esp_modem_dte.hpp>
#include <esp_modem_config.h> #include <esp_modem_config.h>

View file

@ -2,11 +2,13 @@
#include <memory> #include <memory>
#include "esphome/core/component.h" #include "esphome/core/component.h"
#include "esphome/core/log.h"
#include "esphome/components/network/util.h" #include "esphome/components/network/util.h"
#if defined(USE_ESP32) || defined(USE_ESP_IDF) #ifdef USE_ESP_IDF
#include <esp_log.h> using esphome::esp_log_printf_; // esp_modem will use esphome logger (needed if other components include
// esphome/core/log.h)
#include <cxx_include/esp_modem_api.hpp> #include <cxx_include/esp_modem_api.hpp>
#include <esp_modem_config.h> #include <esp_modem_config.h>
#include <driver/gpio.h> #include <driver/gpio.h>