19.07.2012, 12:11
If you want to know what the problem was which was corrected in the post by Andi_Evandi then this line:
if(sscanf(params,"us[100]",PID,Message))
is the code that actually assign the variables PID and Message the values you put in the command. So placing this line AFTER you use PID and Message is pointless, by moving the line in top the values are assigned correctly and you can use those varibles in code AFTER like:
else if (PM_Enabled[PID] == 1)
Hope it maskes sence to you
if(sscanf(params,"us[100]",PID,Message))
is the code that actually assign the variables PID and Message the values you put in the command. So placing this line AFTER you use PID and Message is pointless, by moving the line in top the values are assigned correctly and you can use those varibles in code AFTER like:
else if (PM_Enabled[PID] == 1)
Hope it maskes sence to you