From 36dd8d352a36af39b7d16649e068625d9b4a7152 Mon Sep 17 00:00:00 2001 From: chen <15335560115@163.com> Date: 星期四, 28 十一月 2024 17:34:31 +0800 Subject: [PATCH] 基站一对多稳定版本,不丢包 --- keil/include/main/main.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/keil/include/main/main.c b/keil/include/main/main.c index e630481..53719c6 100644 --- a/keil/include/main/main.c +++ b/keil/include/main/main.c @@ -63,7 +63,8 @@ #define NUM_SAMPLES 1 #define SLEEP_START_TIME 120 uint8_t enable_sleep_count,sleep_flag; -//#define DEBUG_MODE +#define DEBUG_MODE + struct UART_CFG_T test_uart_cfg = { .parity = UART_PARITY_NONE, @@ -264,7 +265,7 @@ // Enable sleep timer sleep_timer_open(true, SLEEP_TIMER_MODE_RELOAD, sleep_timer_callback); //sleep_timer_start(__MS_TO_32K_CNT(g_com_map[COM_INTERVAL]));//测试 - sleep_timer_start(__MS_TO_32K_CNT(500));//测试 + sleep_timer_start(__MS_TO_32K_CNT(sleep_time_count));//测试 //board_5V_input_init(voltage_input_handler);//有修改3.3V会一直高电平导致无法进入休眠 #ifdef BOXING io_pin_mux_set(IO_PIN_5, IO_FUNC0);//波形测试 -- Gitblit v1.9.3