From 548d9a3dbd888c3421a1291de92d6079fb500448 Mon Sep 17 00:00:00 2001 From: YunHorn Technology Date: Mon, 25 Dec 2023 18:27:58 +0800 Subject: [PATCH] try output U/L frame count in lora_app.c --- Core/Inc/sys_conf.h | 2 +- LoRaWAN/App/lora_app.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Core/Inc/sys_conf.h b/Core/Inc/sys_conf.h index de3a94d..51ca3b6 100644 --- a/Core/Inc/sys_conf.h +++ b/Core/Inc/sys_conf.h @@ -47,7 +47,7 @@ extern "C" { /** * @brief Verbose level for all trace logs */ -#define VERBOSE_LEVEL VLEVEL_H +#define VERBOSE_LEVEL VLEVEL_L /** * @brief Enable trace logs diff --git a/LoRaWAN/App/lora_app.c b/LoRaWAN/App/lora_app.c index 479e6cc..299ac4b 100644 --- a/LoRaWAN/App/lora_app.c +++ b/LoRaWAN/App/lora_app.c @@ -809,7 +809,7 @@ static void SendTxData(void) #endif UTIL_TIMER_Time_t nextTxIn = 0; - if (LmHandlerIsBusy() == false) + //if (LmHandlerIsBusy() == false) { uint8_t i = 0; //MX_TOF_Process(); @@ -1021,8 +1021,8 @@ static void OnTxData(LmHandlerTxParams_t *params) #endif UTIL_TIMER_Start(&TxLedTimer); - APP_LOG(TS_OFF, VLEVEL_M, "\r\n###### ========== MCPS-Confirm =============\r\n"); - APP_LOG(TS_OFF, VLEVEL_M, "###### U/L FRAME:%04d | PORT:%d | DR:%d | PWR:%d", params->UplinkCounter, + APP_LOG(TS_OFF, VLEVEL_M, "\r\n###### ========== MCPS-Confirm =============\r\n"); //YUNHORN TODO was VLEVEL_M + APP_LOG(TS_OFF, VLEVEL_M, "###### U/L FRAME:%04d | PORT:%d | DR:%d | PWR:%d", params->UplinkCounter, //YUNHORN TODO was VLEVEL_M params->AppData.Port, params->Datarate, params->TxPower); APP_LOG(TS_OFF, VLEVEL_M, " | MSG TYPE:");