Longs in CCS C are 16 bits which limits them to 65535. So you are experiencing some sort of truncation in the arithematic. You will need to use int32 for you variables.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum