well. yyah..! it is my mistake in line number.
Now,
In the line number 1145, I wrote in the comport
like,,,
CMD_Array[]={
"RS_Password 0\r\n",
"RG_AirTemp1\r\n",
"RG_AirTemp2\r\n",
"RG_RelHumid1\r\n",
"RG_RelHumid2\r\n",
"\x01\r\n"
};
In line number 1125, I wrote the another array of RS/RG commands,
like...
CMD_Array1[]={
"RS_Password 0\r\n",
"RG_FanRPM\r\n",
"\x01\r\n"
};
Assume that i get the responces for the first array 'CMD_array' from the device..
During this process, Sometimes i need to stop the CMD_Array of commands and i have to send the
'CMD_Array1' and i have to receive the respose from the device.
but, my problem is, i could't immediately shift from the CMD_Array to CMD_Array1. When motor_flag==2,
I have to send the RG_FanRPM to the device. but i saw that my code is sending still 'CMD_Array' (RG_AirTemp1,RG_AirTemp2)
It is a crucial problem in my work..please help me..
Thank you in advance,