From: kyz Date: Wed, 23 Mar 2022 05:43:24 +0000 (+0800) Subject: add indicate_grop X-Git-Url: http://kyz.pub/gitweb/?a=commitdiff_plain;h=4466bbdb29ba6ba9b4f4bca201baa6a5c81f6273;p=zh%2Falarmboard.git add indicate_grop --- diff --git a/Core/Inc/user.h b/Core/Inc/user.h index 02b4d4e..37d2460 100644 --- a/Core/Inc/user.h +++ b/Core/Inc/user.h @@ -11,7 +11,7 @@ #include "main.h" #define DEVICE_TYPE 0x4241 //'AB' -#define DEVICE_SWVER 0x0002 +#define DEVICE_SWVER 0x0003 #define DEBUG_PRINT 1 #define DEBUG_PORT_UART 0 diff --git a/Core/Src/user_app.c b/Core/Src/user_app.c index 8181147..c9aeb38 100644 --- a/Core/Src/user_app.c +++ b/Core/Src/user_app.c @@ -460,7 +460,8 @@ int32_t alarm_check_single_input( uint32_t ch ) int32_t alarm_check_group_input( uint32_t ch_type, uint32_t ch_mask ) { - int32_t rpt_alarm_mask = 0; + uint32_t rpt_alarm_mask = 0; + uint32_t rpt_indicate_mask = 0; int32_t alarm = INPUT_ST_NORMAL; int32_t i; int32_t ch_st = 0; @@ -474,6 +475,8 @@ int32_t alarm_check_group_input( uint32_t ch_type, uint32_t ch_mask ) ch_st = alarm_check_single_input( i ); if( ch_st == INPUT_ST_ALARM ||ch_st == INPUT_ST_FAULT ){ rpt_alarm_mask |= 1<