From adf1451904607e2f8d47437e2b730fe6e09130c6 Mon Sep 17 00:00:00 2001 From: yincheng.zhong <634916154@qq.com> Date: 星期一, 07 十一月 2022 10:03:26 +0800 Subject: [PATCH] V1.40 修复单片机电压检测BUG --- Src/application/dw_app.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/application/dw_app.c b/Src/application/dw_app.c index 600566f..305cb76 100644 --- a/Src/application/dw_app.c +++ b/Src/application/dw_app.c @@ -78,7 +78,7 @@ NEARPOLL, }tag_state=NEARPOLL; static dwt_config_t config = { - 5, /* Channel number. */ + 2, /* Channel number. */ DWT_PRF_64M, /* Pulse repetition frequency. */ DWT_PLEN_128, /* Preamble length. */ DWT_PAC8, /* Preamble acquisition chunk size. Used in RX only. */ @@ -646,6 +646,6 @@ //GPIO_WriteBit(EU_TX_GPIO, EU_RX_PIN, Bit_RESET); break; } - bat_percent=Get_VDDVlotage(); dwt_entersleep(); + bat_percent=Get_VDDVlotage(); } -- Gitblit v1.9.3