|
Re: Crazy Loops
If your 'done' variable was changing by itself, then perhaps the gyro call is assigning a variable of the wrong type ... if that variable is immediately adjacent in memory to the 'done' variable, the overflow would affect it.
This normally wouldn't be possible with a compiler like EasyC, which doesn't use pointers (well, it doesn't let US use pointers).
Please post the exact code - C code preferrably.
Mike
BTW - PSEUDO-CODE, not SUDO (but probably you know that)
|