From 127bcc70c9d3e0871a0fd80ff8e21190c80a8229 Mon Sep 17 00:00:00 2001 From: zhyinch <zhyinch@gmail.com> Date: 星期三, 22 九月 2021 17:59:03 +0800 Subject: [PATCH] V1.56 固定参数版本 --- 源码/核心板/Src/application/beep_logic_app.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/beep_logic_app.c" "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/beep_logic_app.c" index c7df14f..171a26c 100644 --- "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/beep_logic_app.c" +++ "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/beep_logic_app.c" @@ -26,6 +26,8 @@ beep_state=2; distoffset1=0; distoffset2=0; + beep_timer = 0; + timer_state = 1; } else if (min_dist <= g_com_map[ALARM_DISTANCE3]+distoffset2) { @@ -39,6 +41,8 @@ beep_state=0; distoffset1=0; distoffset2=0; + beep_timer = 0; + timer_state = 1; } if(beep_state!=0) @@ -80,6 +84,8 @@ beep_state2=2; distoffset12=0; distoffset22=0; + timer_state2=1; + beep_timer2=0; } else if (min_dist <= g_com_map[RELAY2_DISTANCE3]+distoffset22) { @@ -93,6 +99,8 @@ beep_state2=0; distoffset12=0; distoffset22=0; + timer_state2=1; + beep_timer2=0; } if(beep_state2!=0) -- Gitblit v1.9.3