Quote:
|
Originally Posted by Astronouth7303
Ok, I tried that. Get this: ...\user_routines.c:267:Warning [2058] call of function without prototype:
|
In C (and C++), function calls are case sensitive. Change "Rand()" to "rand()" and you should be all set.
Quote:
Code:
pwm01=pwm03=Random;
pwm02=pwm04=Random;
|
Whenever you need to call a function, you need to include the parentheses, even if there aren't any arguments. So your code should look like:
Code:
pwm01=pwm03=Random();
pwm02=pwm04=Random();