diff options
author | Florian Baumann <derflob@derflob.de> | 2020-05-08 16:40:44 +0200 |
---|---|---|
committer | Florian Baumann <derflob@derflob.de> | 2020-05-08 16:40:44 +0200 |
commit | f72dc0d488403f89efbf91bd004ce64016addcc8 (patch) | |
tree | 04cc8c6f73a52c48d541159566c8f66843a23951 | |
parent | db5a7739cf13d3f33ffc2655a37ae6d4bf109bfc (diff) | |
download | ULPSoilMonitor-f72dc0d488403f89efbf91bd004ce64016addcc8.tar.gz ULPSoilMonitor-f72dc0d488403f89efbf91bd004ce64016addcc8.tar.bz2 |
set ULP wake up period to 30siotwebconf
-rw-r--r-- | ULPSoilMonitor.ino | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ULPSoilMonitor.ino b/ULPSoilMonitor.ino index 8c9884d..76a14d3 100644 --- a/ULPSoilMonitor.ino +++ b/ULPSoilMonitor.ino @@ -19,6 +19,8 @@ #define ADC_FACTOR (3.5f) #define ADC_VCC_PIN (ADC2_CHANNEL_9) +#define ULP_PERIOD_MS (30000) + extern const uint8_t ulp_main_bin_start[] asm("_binary_ulp_main_bin_start"); extern const uint8_t ulp_main_bin_end[] asm("_binary_ulp_main_bin_end"); @@ -183,8 +185,8 @@ static void init_ulp_program() rtc_gpio_set_level(GPIO_NUM_25, 1); rtc_gpio_hold_en(GPIO_NUM_25); - /* Set ULP wake up period to 1000ms */ - ulp_set_wakeup_period(0, 1000 * 1000); + /* Set ULP wake up period */ + ulp_set_wakeup_period(0, ULP_PERIOD_MS * 1000); /* Disable pullup on GPIO15, in case it is connected to ground to suppress boot messages. |