This commit is contained in:
WangQiang 2016-05-14 01:56:38 +00:00
parent a92cbe5e7b
commit 8712596dae
1 changed files with 3 additions and 1 deletions

View File

@ -480,7 +480,8 @@ bool DevicesManagement::SendDevices(DeviceAtions act, const Device* dv)
// break; // break;
default: default:
debug_printf("无法处理的指令\r\n"); debug_printf("无法处理的指令\r\n");
break; return false;
} }
if (actstr.Length() == 0)return false; if (actstr.Length() == 0)return false;
@ -492,6 +493,7 @@ bool DevicesManagement::SendDevices(DeviceAtions act, const Device* dv)
TokenMessage tmsg(0x08); TokenMessage tmsg(0x08);
tmsg.SetData(Buffer(datams.GetBuffer(), datams.Position())); tmsg.SetData(Buffer(datams.GetBuffer(), datams.Position()));
Port->Send(tmsg); Port->Send(tmsg);
return true;
} }
void DevicesManagement::DeviceRequest(DeviceAtions act, byte id) void DevicesManagement::DeviceRequest(DeviceAtions act, byte id)