|
|
View previous topic :: View next topic |
Author |
Message |
Ttelmah Guest
|
|
Posted: Tue Jul 22, 2008 2:29 am |
|
|
A a comment, the 'variable never used RS232_ERRORS' warning, is just an annoyance of the compiler, and remember is only a _warning_. It does not in itself imply that anything is really wrong, it is just telling you this, so that if it is a variable that isn't used, you can possibly get rid of it, and save a small amount of RAM
If you add the 'errors' statement to the RS232 setup (which should be the default), the compiler does two things. First it adds to the getc code, routines to clear errors if set. Then it generates a variable called 'RS232_ERRORS', and when it clears an error, makes a copy of the error bits into this. Hence you can at any time read this variable, and see what the last error was. However if you don't read the variable, you get the warning, which 'worries' some people, who don't understand what is happening.
Best Wishes |
|
|
sella Guest
|
|
Posted: Tue Jul 22, 2008 7:44 am |
|
|
Hi! Thanks for the reply.
I tried to compare the data received with another data, but I still couldn't get the output desired. I can't understand why the data is not compared.
Please kindly reply.
thanks |
|
|
|
|
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
|