Commit ddbbed1b authored by captainwong's avatar captainwong

fix HMT_ARM

parent 1a97285e
...@@ -180,7 +180,7 @@ namespace CSharpDemo ...@@ -180,7 +180,7 @@ namespace CSharpDemo
// 演示如何进行布撤防,真实项目里可以删改本段 // 演示如何进行布撤防,真实项目里可以删改本段
if (++counter % 5 == 0) 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"); sendDisarm(stream, nextSeq(seq), acct, ademco_id, "123456");
} }
......
...@@ -259,7 +259,7 @@ public class JavaDemo { ...@@ -259,7 +259,7 @@ public class JavaDemo {
long now = System.currentTimeMillis(); long now = System.currentTimeMillis();
if (now - lastTimeStatusChange > 5000) { if (now - lastTimeStatusChange > 5000) {
lastTimeStatusChange = now; lastTimeStatusChange = now;
if (status == hb_machine_status_t.HMS_ARM) { if (status == hb_machine_status_t.HMS_ARM_STAY) {
disarm("123456"); disarm("123456");
} else { } else {
arm(); arm();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment