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

what is warnings ment?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
whung.john
Guest







what is warnings ment?
PostPosted: Sun Aug 12, 2007 7:40 am     Reply with quote

today i compile my code.
the compiler send a warning.
who can help to modify , thanks u very much

line 242[1,1];assignment inside relation expression .

the area code follow as:
if (!input(pin_b3) && (keyscan=1)) //sw17
{
output_low(pin_a4);
control_motorkey=0;
}
Steve H.
Guest







PostPosted: Sun Aug 12, 2007 9:28 am     Reply with quote

This is assigning a 1 to keyscan, not checking if keyscan is equal to 1,

"keyscan=1"

perhaps you meant,

"keyscan == 1"

???

HTH - Steve H
whung.john
Guest







thanks u for Steve H.
PostPosted: Wed Aug 15, 2007 9:57 am     Reply with quote

Steve H. wrote:
This is assigning a 1 to keyscan, not checking if keyscan is equal to 1,

"keyscan=1"

perhaps you meant,

"keyscan == 1"

???

HTH - Steve H



thanks u very Steve H.
ready,the error is "keyscan=1" ,i tried modify the code.
and not any error information display.
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