 by koli » Thu May 20, 2010 9:41 am
                by koli » Thu May 20, 2010 9:41 am
            
            
                     by koli
                by koli
Thu May 20, 2010 9:41 am
            
            
            Hi,
even they are declared as same type (char) I get the next error when I try to compile source:
a value of type 'const void' can't be assigned to an entity type 'unsigned char'
I'm using codevision AVR
The example of code is:
char PosSend(char ServoID, char SpeedLevel, char Position)
{
 char Current; 
 SendOperCommand((SpeedLevel<<5)|ServoID, Position);
 GetByte(TIME_OUT1);                  
 Current = GetByte(TIME_OUT1); //      LINE WHERE I GOT THE ERROR
 return Current;
}
This code is an example of robobuilder-creator-users-manual.pdf page 63
            Hi,
even they are declared as same type (char) I get the next error when I try to compile source:
a value of type 'const void' can't be assigned to an entity type 'unsigned char'
I'm using codevision AVR
The example of code is:
char PosSend(char ServoID, char SpeedLevel, char Position)
{
 char Current; 
 SendOperCommand((SpeedLevel<<5)|ServoID, Position);
 GetByte(TIME_OUT1);                  
 Current = GetByte(TIME_OUT1); //      LINE WHERE I GOT THE ERROR
 return Current;
}
This code is an example of robobuilder-creator-users-manual.pdf page 63