projects
/
zh
/
alarmboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10c75f1
)
v1.2 按需求修改,测试键按下状态,蜂鸣器保持打开
author
kyz
<kyz@kyz.pub>
Thu, 23 Mar 2023 01:01:58 +0000
(09:01 +0800)
committer
kyz
<kyz@kyz.pub>
Thu, 23 Mar 2023 01:01:58 +0000
(09:01 +0800)
Core/Inc/user.h
patch
|
blob
|
history
Core/Src/user_app.c
patch
|
blob
|
history
diff --git
a/Core/Inc/user.h
b/Core/Inc/user.h
index cacfde065fe1b8621b461ebbff72ae1fe807a51f..efa197bf1ff855fecce068c24774585caa2caba1 100644
(file)
--- a/
Core/Inc/user.h
+++ b/
Core/Inc/user.h
@@
-16,7
+16,7
@@
#define DEFAULT_DNS_ADDR {114,114,114,114}
#define DEVICE_TYPE 0x5A31 //'AB'
-#define DEVICE_SWVER 0x010
1
+#define DEVICE_SWVER 0x010
2
#define DEBUG_PRINT 1
#define DEBUG_PORT_UART 0
diff --git
a/Core/Src/user_app.c
b/Core/Src/user_app.c
index c1e573fed0d8c5b18b457d050f5bfc1755815412..5b4c5ad3c92b98f911eb997cb9411de98ded613c 100644
(file)
--- a/
Core/Src/user_app.c
+++ b/
Core/Src/user_app.c
@@
-844,6
+844,10
@@
void led_beep_refresh( void )
if( g_devinfo.out.led_test == 1 ){
//测试键按下状态,保持LED全亮
led_test_all_on();
+#if 1
+ //按需求修改,测试键按下状态,蜂鸣器保持打开, 2023/03/23
+ HAL_BeepOn();
+#endif
return;
}else if( g_devinfo.out.led_test >1 ){
HAL_BeepOn();