From d00fd80d6dfbc216136632765a8883827219cecd Mon Sep 17 00:00:00 2001 From: yincheng.zhong <634916154@qq.com> Date: 星期二, 25 六月 2024 00:55:23 +0800 Subject: [PATCH] V1.15 修改同步逻辑,罗姆验证没问题 --- Src/application/dw_mbx_tag.c | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/Src/application/dw_mbx_tag.c b/Src/application/dw_mbx_tag.c index f5c47bb..e077358 100644 --- a/Src/application/dw_mbx_tag.c +++ b/Src/application/dw_mbx_tag.c @@ -237,7 +237,7 @@ u8 seq_num; extern u8 wg_lost_count; uint16_t wg_report_freq,wg_report_id; -#define WG_LOST_SWITCH_THRES 3 +#define WG_LOST_SWITCH_THRES 5 #define WG_LOST_NOUWB_COUNT 60 #define DEFAULT_WG_ID 0xFFFF u8 lora_jianting_flag = 1; @@ -397,6 +397,7 @@ LED2_TB_OFF; LED2_TR_OFF; } +extern uint8_t rec_secdelay; u16 lora_send_count; void Lora_Send_Poll(void) { @@ -405,6 +406,12 @@ if(lora_send_count++%10==0||lora_jianting_flag) { Lora_send_flag=0; + if(rec_secdelay>0) + { + // loraled=YELLOW; + rec_secdelay--; + return; + } LedTask(); LoraReportPoll(); LedOff_task(); -- Gitblit v1.9.3