Changed protocol parameters storage.

parent a4a00235
......@@ -96,24 +96,38 @@ unsigned char Com_GUI::RecvCommandHndlr()
return 3;
}
else
{
{
//Receive first protocol
prot = 0;
SaveProtocolData();
ReplyToPC('S', 'R');
newDataFromPC = false;
prot++;
if(prot==0)
{
SaveProtocolData();
ReplyToPC('S', 'R');
newDataFromPC = false;
prot++;
return 4;
}
//Receive second protocol
SaveProtocolData();
ReplyToPC('S', 'R');
newDataFromPC = false;
prot++;
else if(prot==1)
{
SaveProtocolData();
ReplyToPC('S', 'R');
newDataFromPC = false;
prot++;
return 4;
}
//Receive third protocol
SaveProtocolData();
newDataFromPC = false;
ReplyToPC('S', 'R');
prot = 0;
return 4;
else if(prot==2)
{
SaveProtocolData();
ReplyToPC('S', 'R');
newDataFromPC = false;
prot = 0;
return 5;
}
else
{
return 0;
}
}
//else
//{
......
......@@ -36,8 +36,11 @@ int main()
case 3:
//StimulationProtocols.Jump();
break;
case 4:
//StimulationProtocols.Start();
case 4:
//receiving protocols...
break;
case 5:
//StimulationProtocols.Start();
break;
default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment