C:\...\EDU_Default_02-16-04\user_routines.c:249:Error: syntax error
Halting build on first failure as requested.
BUILD FAILED: Mon Dec 20 16:36:48 2004
here is the snippet i edited
Code:
/*******************************************************************************
* FUNCTION NAME: Process_Data_From_Master_uP
* PURPOSE: Executes every 17ms when it gets new data from the master
* microprocessor.
* CALLED FROM: main.c
* ARGUMENTS: none
* RETURNS: void
*******************************************************************************/
void Process_Data_From_Master_uP(void)
{
Getdata(&rxdata); /* Get fresh data from the master microprocessor. */
Default_Routine(); /* Optional. See below. */
/* Add your own code here. */
static char servo1=0;
static char counter=0;
if (counter < 20) // about half a second in the slow loop
counter++;
else
{
counter = 0;
if (servo1 < 254)
servo1++; // servo1 will slowly step through each of it’s positions
else
servo1 = 0; // servo1 will quickly reset to the zero position
}
pwm03 = servo1;
printf("PWM OUT 7 = %d, PWM OUT 8 = %d\n",(int)pwm07,(int)pwm08); /* printf EXAMPLE */
Putdata(&txdata); /* DO NOT CHANGE! */
}
(sorry if i am being annoying, im just new at this)