for(pos=180;pos>=1;pos--)
So after the first run through the loop and pos is incremented to 179 , since 179 is greater than 1, why wouldn't it drop out of the
loop when it gets to this ?
for(pos=179;pos>=1;pos--)
Isn't
pos>=1
the condition to exit the loop ? (and isn't this condition met when pos=179 ?)
What am I missing here ?