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
ddbbed1b
Commit
ddbbed1b
authored
Apr 19, 2024
by
captainwong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix HMT_ARM
parent
1a97285e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
CSharpDemo.cs
swig/CSharpDemo.cs
+1
-1
JavaDemo.java
swig/JavaDemo.java
+1
-1
No files found.
swig/CSharpDemo.cs
View file @
ddbbed1b
...
...
@@ -180,7 +180,7 @@ namespace CSharpDemo
// 演示如何进行布撤防,真实项目里可以删改本段
if
(++
counter
%
5
==
0
)
{
if
(
status
==
hb_machine_status_t
.
HMS_ARM
)
if
(
status
==
hb_machine_status_t
.
HMS_ARM
_STAY
)
{
sendDisarm
(
stream
,
nextSeq
(
seq
),
acct
,
ademco_id
,
"123456"
);
}
...
...
swig/JavaDemo.java
View file @
ddbbed1b
...
...
@@ -259,7 +259,7 @@ public class JavaDemo {
long
now
=
System
.
currentTimeMillis
();
if
(
now
-
lastTimeStatusChange
>
5000
)
{
lastTimeStatusChange
=
now
;
if
(
status
==
hb_machine_status_t
.
HMS_ARM
)
{
if
(
status
==
hb_machine_status_t
.
HMS_ARM
_STAY
)
{
disarm
(
"123456"
);
}
else
{
arm
();
...
...
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