Просмотр исходного кода

sleep: fixed the issue error log not printed

Michael (XIAO Xufeng) 3 лет назад
Родитель
Сommit
3503ee41ca
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      components/esp_hw_support/sleep_modes.c

+ 1 - 1
components/esp_hw_support/sleep_modes.c

@@ -364,7 +364,7 @@ static uint32_t IRAM_ATTR esp_sleep_start(uint32_t pd_flags)
 {
 #if CONFIG_IDF_TARGET_ESP32S3
     if (esp_no_sleep) {
-        ESP_LOGE(TAG, "Sleep cannot be used with Touch/ULP for now.");
+        ESP_EARLY_LOGE(TAG, "Sleep cannot be used with Touch/ULP for now.");
         abort();
     }
 #endif //CONFIG_IDF_TARGET_ESP32S3