From ee86a0140aa429a2ef7b695d653f55486c9fa664 Mon Sep 17 00:00:00 2001 From: WangQiang <807319473@qq.com> Date: Thu, 12 May 2016 08:21:00 +0000 Subject: [PATCH] --- TinyNet/DevicesManagement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TinyNet/DevicesManagement.cpp b/TinyNet/DevicesManagement.cpp index fa30f238..60c8627b 100644 --- a/TinyNet/DevicesManagement.cpp +++ b/TinyNet/DevicesManagement.cpp @@ -453,7 +453,7 @@ bool DevicesManagement::SendDevices(DeviceAtions act, const Device* dv) // 不存在主动发送这两条 if (act == DeviceAtions::List || act == DeviceAtions::ListIDs)return false; // 保证可以顺利执行 - if (Port)return false; + if (Port == nullptr)return false; if (Port->Status < 2) return false; // 只有 Register 需要发送完整设备信息 String actstr;