From c3b70e278a717db3d7f76abe2078ad3ee7db00a8 Mon Sep 17 00:00:00 2001 From: Chelios Date: Fri, 4 Oct 2024 09:42:36 +0300 Subject: [PATCH] using esphome::esp_log_printf_ --- esphome/components/modem/modem_component.cpp | 8 ++++---- esphome/components/modem/modem_component.h | 7 ++++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/esphome/components/modem/modem_component.cpp b/esphome/components/modem/modem_component.cpp index bd22a9c2e5..99c2db7f27 100644 --- a/esphome/components/modem/modem_component.cpp +++ b/esphome/components/modem/modem_component.cpp @@ -1,12 +1,12 @@ -#include "esp_modem_c_api_types.h" -#include "esp_netif_ppp.h" -#include "cxx_include/esp_modem_api.hpp" - #include "modem_component.h" + #include "esphome/core/log.h" #include "esphome/core/util.h" #include "esphome/core/application.h" +#include "esp_modem_c_api_types.h" +#include "esp_netif_ppp.h" + #ifdef USE_ESP32 #include diff --git a/esphome/components/modem/modem_component.h b/esphome/components/modem/modem_component.h index 3702d91173..62eece20ae 100644 --- a/esphome/components/modem/modem_component.h +++ b/esphome/components/modem/modem_component.h @@ -1,16 +1,17 @@ #pragma once -#include "cxx_include/esp_modem_dte.hpp" -#include "cxx_include/esp_modem_dce.hpp" - #include "esphome/core/component.h" +#include "esphome/core/log.h" #include "esphome/core/defines.h" #include "esphome/core/hal.h" #include "esphome/components/network/ip_address.h" #ifdef USE_ESP32 +using esphome::esp_log_printf_; + #include "esp_netif.h" +#include "cxx_include/esp_modem_api.hpp" namespace esphome { namespace modem {