From 79d5d6bcc3bc634ea2f977c0ecb1f1356554d4b0 Mon Sep 17 00:00:00 2001 From: zhyinch <zhyinch@gmail.com> Date: 星期四, 07 十一月 2019 15:33:21 +0800 Subject: [PATCH] 修改串口数组个数bug,增加报警距离功能 --- 源码/核心板/Src/application/beep_logic_app.c | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 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 80fc0c0..a40b977 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" @@ -37,21 +37,21 @@ beep_ontime = ONTIME1; beep_offtime = OFFTIME1; beep_state=1; - LED0_ON; + } -// else if (min_dist <= g_com_map[ALARM_DISTANCE2]) -// { -// beep_ontime = ONTIME2; -// beep_offtime = OFFTIME2; -// beep_state=1; -// }else if (min_dist <= g_com_map[ALARM_DISTANCE3]) + else if (min_dist <= g_com_map[ALARM_DISTANCE2]) + { + beep_ontime = ONTIME2; + beep_offtime = OFFTIME2; + beep_state=1; + } + //else if (min_dist <= g_com_map[ALARM_DISTANCE3]) // { // beep_ontime = ONTIME3; // beep_offtime = OFFTIME3; // beep_state=1; // } else{ - LED0_OFF; beep_state=0; } -- Gitblit v1.9.3