mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	using esphome::esp_log_printf_
This commit is contained in:
		| @@ -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> | ||||||
|   | |||||||
| @@ -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> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user