diff --git a/include/boot.h b/include/boot.h index 8aaf0d2a..128932c7 100644 --- a/include/boot.h +++ b/include/boot.h @@ -3,6 +3,7 @@ #include "globals.h" #include "hash.h" +#include "reset.h" #include #include diff --git a/include/cyclic.h b/include/cyclic.h index d40891af..8b16046c 100644 --- a/include/cyclic.h +++ b/include/cyclic.h @@ -11,6 +11,7 @@ #include "sds011read.h" #include "sdcard.h" #include "macsniff.h" +#include "reset.h" extern Ticker cyclicTimer; diff --git a/include/globals.h b/include/globals.h index fa958e4b..1930a3f5 100644 --- a/include/globals.h +++ b/include/globals.h @@ -148,6 +148,5 @@ extern SemaphoreHandle_t I2Caccess; extern TaskHandle_t irqHandlerTask, ClockTask, macProcessTask; extern TimerHandle_t WifiChanTimer; extern Timezone myTZ; -extern RTC_NOINIT_ATTR runmode_t RTC_runmode; #endif diff --git a/include/reset.h b/include/reset.h index ddf3dfcb..653164c0 100644 --- a/include/reset.h +++ b/include/reset.h @@ -15,4 +15,6 @@ void enter_deepsleep(const uint64_t wakeup_sec = 60, const gpio_num_t wakeup_gpio = GPIO_NUM_MAX); unsigned long long uptime(void); +extern RTC_NOINIT_ATTR runmode_t RTC_runmode; + #endif // _RESET_H \ No newline at end of file