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 {