发表于:2002-11-28 08:59:00
楼主
在发送显示消息后接收响应,结果程序飞了.那位能给个解答?
when(io_changes(Send_msg) to 0)
{
msg_out.tag=tag02;
msg_out.code=1;
msg_out.service=REQUEST;
msg_send();
}
when(msg_succeeds)
{
GizmoDisplayNumber(4,3,resp_in.data[0]);
}
when(msg_fails(tag02))
{
if (!resp_arrives(tag02))
{
GizmoDisplayNumber(0,3,0xff);
resp_free();
}
else GizmoDisplayNumber(0,3,1);
}