diff --git a/src/sleep.cpp b/src/sleep.cpp index 650cb66d..9468b7d0 100644 --- a/src/sleep.cpp +++ b/src/sleep.cpp @@ -16,11 +16,11 @@ #include #include -#ifndef INCLUDE_vTaskSuspend -#define INCLUDE_vTaskSuspend 0 +esp_sleep_source_t wakeCause; // the reason we booted this time #endif -esp_sleep_source_t wakeCause; // the reason we booted this time +#ifndef INCLUDE_vTaskSuspend +#define INCLUDE_vTaskSuspend 0 #endif #ifdef HAS_PMU