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 support@ccsinfo.com

code has no effect at line sleep(SLEEP_IDLE) SOLVED

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



Joined: 20 Nov 2010
Posts: 11
Location: Hong Kong

View user's profile Send private message

code has no effect at line sleep(SLEEP_IDLE) SOLVED
PostPosted: Sat Dec 18, 2010 1:27 am     Reply with quote

Hi,
PCD V4.112, PIC24F16KA102, the complier report the following message

Warning 207 Code has no effect

The error point to the following code
sleep(SLEEP_IDLE);

I try sleep() and sleep and get the same result.

Any suggestion please?


Last edited by pfsdanny on Sat Dec 18, 2010 2:02 am; edited 1 time in total
pfsdanny



Joined: 20 Nov 2010
Posts: 11
Location: Hong Kong

View user's profile Send private message

PostPosted: Sat Dec 18, 2010 2:01 am     Reply with quote

I use the following code to work arround

#asm
sleep SLEEP_IDLE
#endasm
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