mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	Fix rom/rtc.h deprecation compile warning for debug component (#2520)
This commit is contained in:
		| @@ -4,20 +4,23 @@ | |||||||
| #include "esphome/core/defines.h" | #include "esphome/core/defines.h" | ||||||
| #include "esphome/core/version.h" | #include "esphome/core/version.h" | ||||||
|  |  | ||||||
|  | #ifdef USE_ESP_IDF | ||||||
|  | #include <esp_heap_caps.h> | ||||||
|  | #include <esp_system.h> | ||||||
|  | #endif | ||||||
|  |  | ||||||
| #ifdef USE_ESP32 | #ifdef USE_ESP32 | ||||||
|  | #if ESP_IDF_VERSION_MAJOR >= 4 | ||||||
|  | #include <esp32/rom/rtc.h> | ||||||
|  | #else | ||||||
| #include <rom/rtc.h> | #include <rom/rtc.h> | ||||||
| #include <esp_idf_version.h> | #endif | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
| #ifdef USE_ARDUINO | #ifdef USE_ARDUINO | ||||||
| #include <Esp.h> | #include <Esp.h> | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
| #ifdef USE_ESP_IDF |  | ||||||
| #include <esp_heap_caps.h> |  | ||||||
| #include <esp_system.h> |  | ||||||
| #endif |  | ||||||
|  |  | ||||||
| namespace esphome { | namespace esphome { | ||||||
| namespace debug { | namespace debug { | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user