??? 03/08/07 08:09 Read: times |
#134571 - avoid common pitfalls Responding to: ???'s previous message |
One of the common pitfalls in programming in general is, if you make an assumption for which you don't have the tools to ensure it always holds true.
Here, for example, your assumption is, that carry is never used in your "main". That may well be the case NOW, but believe me, if you will work in the field longer, you will find out that parts of older programs you will want to revive, rewrite or even reuse in other programs - and there are no tools to make sure there will be no usage of carry THEN (oh and that you will forget by them take it as granted). JW PS. What Erik wants to tell is, that you still have a serious error in the ISR, which you can discover easily if you go through the WHOLE thread carefully (including your own posts). |