mirror of
https://github.com/esphome/esphome.git
synced 2025-01-31 10:10:56 +00:00
Fix build for esp32h2 using esp-idf 5.3 (#7393)
This commit is contained in:
parent
ca8e45cf4c
commit
91c7c43682
@ -16,6 +16,8 @@
|
|||||||
#include <esp32s2/rom/rtc.h>
|
#include <esp32s2/rom/rtc.h>
|
||||||
#elif defined(USE_ESP32_VARIANT_ESP32S3)
|
#elif defined(USE_ESP32_VARIANT_ESP32S3)
|
||||||
#include <esp32s3/rom/rtc.h>
|
#include <esp32s3/rom/rtc.h>
|
||||||
|
#elif defined(USE_ESP32_VARIANT_ESP32H2)
|
||||||
|
#include <esp32h2/rom/rtc.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef USE_ARDUINO
|
#ifdef USE_ARDUINO
|
||||||
#include <Esp.h>
|
#include <Esp.h>
|
||||||
@ -61,7 +63,7 @@ std::string DebugComponent::get_reset_reason_() {
|
|||||||
case RTCWDT_SYS_RESET:
|
case RTCWDT_SYS_RESET:
|
||||||
reset_reason = "RTC Watch Dog Reset Digital Core";
|
reset_reason = "RTC Watch Dog Reset Digital Core";
|
||||||
break;
|
break;
|
||||||
#if !defined(USE_ESP32_VARIANT_ESP32C6)
|
#if !defined(USE_ESP32_VARIANT_ESP32C6) && !defined(USE_ESP32_VARIANT_ESP32H2)
|
||||||
case INTRUSION_RESET:
|
case INTRUSION_RESET:
|
||||||
reset_reason = "Intrusion Reset CPU";
|
reset_reason = "Intrusion Reset CPU";
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user