We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 777d661 commit aa2cf45Copy full SHA for aa2cf45
libraries/ESP32/examples/ResetReason/ResetReason.ino
@@ -91,7 +91,11 @@ void setup() {
91
92
// Set ESP32 to go to deep sleep to see a variation
93
// in the reset reason. Device will sleep for 5 seconds.
94
+#if CONFIG_IDF_TARGET_ESP32C3
95
+ esp_sleep_pd_config(ESP_PD_DOMAIN_RC_FAST, ESP_PD_OPTION_OFF);
96
+#else
97
esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_PERIPH, ESP_PD_OPTION_OFF);
98
+#endif
99
Serial.println("Going to sleep");
100
esp_deep_sleep(5 * uS_TO_S_FACTOR);
101
}
0 commit comments