Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ademco_hb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
ademco_hb
Commits
aefa896e
Commit
aefa896e
authored
Oct 09, 2020
by
captainwong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
isEventNeedControlSource
parent
9d98e027
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
ademco_event.h
include/ademco_event.h
+12
-0
No files found.
include/ademco_event.h
View file @
aefa896e
...
@@ -391,6 +391,18 @@ static inline bool isMachineTypeEvent(ADEMCO_EVENT ademco_event)
...
@@ -391,6 +391,18 @@ static inline bool isMachineTypeEvent(ADEMCO_EVENT ademco_event)
||
ademco_event
==
EVENT_I_AM_GPRS_PHONE
;
||
ademco_event
==
EVENT_I_AM_GPRS_PHONE
;
}
}
//! 事件是否需要控制源
static
inline
bool
isEventNeedControlSource
(
ADEMCO_EVENT
ademco_event
)
{
return
ademco_event
==
EVENT_ARM
||
ademco_event
==
EVENT_HALFARM
||
ademco_event
==
EVENT_HALFARM_1456
||
ademco_event
==
EVENT_DISARM
||
ademco_event
==
EVENT_EMERGENCY
||
ademco_event
==
EVENT_DURESS
||
ademco_event
==
EVENT_PHONE_USER_CANCLE_ALARM
;
}
// 安定宝事件级别
// 安定宝事件级别
enum
EventLevel
enum
EventLevel
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment