View Single Post
Old 05-27-2009, 08:37 AM   #398 (permalink)
electromike
EcoModding Lurker
 
Join Date: Oct 2008
Location: nova scotia
Posts: 35
Thanks: 2
Thanked 0 Times in 0 Posts
Here is an idea to detect on when to go into re-init loop:

Set up a failed byte read count, reset on each successful read.
Once counter reaches say. 15 (about 5 seconds divided by about .3 seconds per read) send the device into re-init mode.
  Reply With Quote