View previous topic :: View next topic |
Author |
Message |
whung.john Guest
|
what is warnings ment? |
Posted: Sun Aug 12, 2007 7:40 am |
|
|
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
|
|
Posted: Sun Aug 12, 2007 9:28 am |
|
|
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. |
Posted: Wed Aug 15, 2007 9:57 am |
|
|
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. |
|
|
|
|
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
|