黄学彪
2020-11-19 9ef48d7b2da7c408b53f73be0f6eef3cbac1c84a
ZigbeeApp/Shared/Phone/Category/CategoryMainForm.cs
@@ -582,6 +582,7 @@
                }
                HdlThreadLogic.Current.RunThread(() =>
                {
                    int sendCount = 0;
                    while (listView.Parent != null)
                    {
                        bool hadSend = false;
@@ -597,7 +598,7 @@
                                //发送获取状态的命令
                                listContr[i].SendStatuComand();
                                hadSend = true;
                                System.Threading.Thread.Sleep(200);
                                System.Threading.Thread.Sleep(300);
                            }
                        }
                        if (hadSend == false)
@@ -605,7 +606,13 @@
                            //如果已经全部回路都接收了网关回复,则不再二次发送
                            break;
                        }
                        System.Threading.Thread.Sleep(2000);
                        sendCount++;
                        if (sendCount == 2)
                        {
                            //就发2次
                            break;
                        }
                        System.Threading.Thread.Sleep(5000);
                    }
                }, ShowErrorMode.NO);