From a22d3545fc983bf2477785ade03b4670b4b82abb Mon Sep 17 00:00:00 2001 From: YunHorn Technology Date: Mon, 16 Oct 2023 10:34:06 +0800 Subject: [PATCH] restore for heart-beat 1 hour, log enabled --- Core/Inc/sys_conf.h | 2 +- LoRaWAN/App/lora_app.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/Inc/sys_conf.h b/Core/Inc/sys_conf.h index 891bd1a..97656db 100644 --- a/Core/Inc/sys_conf.h +++ b/Core/Inc/sys_conf.h @@ -52,7 +52,7 @@ extern "C" { /** * @brief Enable trace logs */ -#define APP_LOG_ENABLED 0 +#define APP_LOG_ENABLED 1 /** * @brief Activate monitoring (probes) of some internal RF signals for debug purpose diff --git a/LoRaWAN/App/lora_app.c b/LoRaWAN/App/lora_app.c index 28c2707..152755e 100644 --- a/LoRaWAN/App/lora_app.c +++ b/LoRaWAN/App/lora_app.c @@ -59,7 +59,7 @@ volatile sts_cfg_nvm_t sts_cfg_nvm={sts_mtmcode1,sts_mtmcode2, sts_version, sts_ {0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF} }; volatile uint32_t SamplingPeriodicity = 1000; //unit ms -volatile uint32_t HeartBeatPeriodicity = 120000; //unit ms +volatile uint32_t HeartBeatPeriodicity = 3600000; //unit ms #ifdef YUNHORN_STS_M7_ENABLED extern volatile uint8_t sensor_data_ready;