This commit is contained in:
parent
a92cbe5e7b
commit
8712596dae
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue