What does it mean that we can do delay_ms() for a variable 0-255 or a constant 0-65535?
I assume we can only have an int in the argument there, right? Otherwise, a hard-coded number will be interpreted by the compiler as valid anywhere from 0-65535?
So the following is invalid?
Code:
long x;
...
delay_ms(x);
I compiled it and there is no warning or error. So CCS then just truncates the variable?
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Fri Mar 05, 2004 5:40 pm
Quote:
long x;
...
delay_ms(x);
I compiled it and there is no warning or error.
So CCS then just truncates the variable?
Based on looking at the .LST file output, apparently so.
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