From 8712596dae1b5381f07f29bfe21a4420292a94fe Mon Sep 17 00:00:00 2001 From: WangQiang <807319473@qq.com> Date: Sat, 14 May 2016 01:56:38 +0000 Subject: [PATCH] --- TinyNet/DevicesManagement.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/TinyNet/DevicesManagement.cpp b/TinyNet/DevicesManagement.cpp index 60c8627b..31ec4d01 100644 --- a/TinyNet/DevicesManagement.cpp +++ b/TinyNet/DevicesManagement.cpp @@ -480,7 +480,8 @@ bool DevicesManagement::SendDevices(DeviceAtions act, const Device* dv) // break; default: debug_printf("无法处理的指令\r\n"); - break; + return false; + } if (actstr.Length() == 0)return false; @@ -492,6 +493,7 @@ bool DevicesManagement::SendDevices(DeviceAtions act, const Device* dv) TokenMessage tmsg(0x08); tmsg.SetData(Buffer(datams.GetBuffer(), datams.Position())); Port->Send(tmsg); + return true; } void DevicesManagement::DeviceRequest(DeviceAtions act, byte id)