>-----Original Message----- >From: Jan-Erik Soderholm XA (TN/PAC) >[mailto:jan-erik.xa.soderholm@ERICSSON.COM] >Sent: 08 January 2004 09:12 >To: PICLIST@MITVMA.MIT.EDU >Subject: Re: [PIC:] Pic as an i2c slave > > >> Out of interest what is pathetic about the attempt to deliberately >> fire a watchdog timeout by using an infinite loop? Surely you agree >> that it is good practice to trap invalid states such as this? > >Now, if your main project (where this example/library code >is used) does *not* use WDT, then it will just hang in an >infinit loop, not ? > >Jan-Erik. Right, but the code wasn't given as a "one size fit's all" solution to anyones I2C requirements. I don't know about you, but if I ever use a code snippet or library written by someone else, I make sure I thoroughly understand how it works and any requirements it has or assumptions it makes rather than just relying on faith and plugging it in. Mike ======================================================================= This e-mail is intended for the person it is addressed to only. The information contained in it may be confidential and/or protected by law. If you are not the intended recipient of this message, you must not make any use of this information, or copy or show it to any person. Please contact us immediately to tell us that you have received this e-mail, and return the original to us. Any use, forwarding, printing or copying of this message is strictly prohibited. No part of this message can be considered a request for goods or services. ======================================================================= Any questions about Bookham's E-Mail service should be directed to postmaster@bookham.com. -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics