| ??? 10/31/07 13:46 Read: times |
#146415 - Probably not, but... Responding to: ???'s previous message |
Dan Henry said:
In several places, ou are using the equality operator: ==where the assignment operator: =should be used. Erik Malund said:
which begs the question did the compiler not tell you what to do? Probably not - they all yeild valid expressions, so there is no real error for the compiler to comment on. As I've noted before, "small" embedded compilers tend to be a lot more reticent in their warnings than "big" compilers like Borland - sorry, Codegear - or Microsoft. Hence it's often a good idea to run your code through a "big" compiler just to get the extra diagnostics However, the compiler should have complained about Sbit front = P0^0; sbit back1 = P0^1;since 'C' is case-sensitive - see: http://www.8052.com/forum/read.phtml?id=146328 |



