CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Error 166 Invalid overload function

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
hebebruecken



Joined: 24 Aug 2010
Posts: 1

View user's profile Send private message

Error 166 Invalid overload function
PostPosted: Wed Aug 25, 2010 1:06 am     Reply with quote

Hi
What's the reason for this error message?
Thanks for any help.

Code:
#define TASTEN 0x30
#define TASTE_YES 0x10
#define TASTE_NO 0x20
#define YES     'Y'
#define NO      'N'
#define BOTH     'B'
#define CALIB   'B'
#define SETUP 'B'
#define TOUT '@'


Code:
#SEPARATE
CHAR readKey(SHORT pwrOff)
{
  if (PORT_B & TASTEN)
 {
   do
   {
     key = PORT_B & TASTEN;
     delayMS(50);
   }
   while (key != PORT_B & TASTEN);
   if (key  ==  TASTE_YES) {  key = YES;  }
   else
   {
      if (key ==  TASTE_NO)  { key = NO;   }
      else
      {
        if (key ==  TASTEN)   { key = CALIB;  }
       }
   }
   if (pwrOff == FALSE)     {   powerOff = DLY_POWER;   }
  }
  else
  {
     key = 0;
  }
  RESTART_WDT( );
  return (key);
}
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Aug 25, 2010 11:42 am     Reply with quote

Your code doesn't compile. It's missing several variable declarations.
This is not a CCS function:
Quote:
delayMS(50);

It doesn't compile.

Post a test program that has all variable declarations, and an #include
statement for the PIC, #fuses, #use delay(), main(), and the program
must call the readKey() function.

Also post your compiler version.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group