tlkj
tlkj
Last edited by begginer; 02-26-2011 at 12:06 AM.
What's "the second function"? You call them in the opposite order that you have them defined, and, are you counting the top snipped as a function or not? What function is getting hung up? Also, if it's getting hung up in one function, look at the loops you have going in that function, and there's your answer.
Quzah.
Hope is the first step on the road to disappointment.
the first function is main, and all it is the while loop, i forgot to copy the void main, its getting into the second function and never out of it
Because it would have been hard to just name the function you wanted us to look at, right? Ok, so throw some printf statements in there, and see where it's hanging. You're playing with hardware we don't have, so it's not like we can know what your hardware is doing there. Start printing out flag values as you go through the function so you can see what it's doing.
Quzah.
Hope is the first step on the road to disappointment.