Commit 39d9af1b authored by captainwong's avatar captainwong

三区段主机仅在布撤防操作时需要发送gg

parent 9b87ab9c
...@@ -132,7 +132,7 @@ void commandcb(evutil_socket_t, short, void* user_data) ...@@ -132,7 +132,7 @@ void commandcb(evutil_socket_t, short, void* user_data)
for (auto& client : context->clients) { for (auto& client : context->clients) {
for (auto e : evs) { for (auto e : evs) {
size_t n = 0; size_t n = 0;
if (client.second.type == EVENT_I_AM_3_SECTION_MACHINE) { if (client.second.type == EVENT_I_AM_3_SECTION_MACHINE && (e == EVENT_ARM || e == EVENT_DISARM)) {
for (int gg = 1; gg <= 3; gg++) { for (int gg = 1; gg <= 3; gg++) {
if (++client.second.seq == 10000) { if (++client.second.seq == 10000) {
client.second.seq = 1; client.second.seq = 1;
......
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