Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/27/07 08:14
Read: times


 
#148765 - Infinite waits
Responding to: ???'s previous message
Russell Bull said:
what happens when the lcd fails? The code gets stuck in the wait loop unless you check for a timeout.

Of course, one should never have a wait loop without some means of "escape" incase the exit condition is missed or doesn't happen!

That could be a timeout, or a maximum number of iterations around the loop...

(Esko Ilola's code uses a "maximum number of iterations around the loop", although he names it "mytime")

List of 20 messages in thread
TopicAuthorDate
LCD 8x24 - samsung 0282a            01/01/70 00:00      
   add. info            01/01/70 00:00      
   add. info            01/01/70 00:00      
   What language are you using?            01/01/70 00:00      
      solved!            01/01/70 00:00      
         Binary numbers in 'C'            01/01/70 00:00      
      Wrong operator            01/01/70 00:00      
         As You are using C, why not            01/01/70 00:00      
   Do not use fixed delays - check for LCD busy            01/01/70 00:00      
      I've found the opposite!            01/01/70 00:00      
         Binary numbers in 'C'            01/01/70 00:00      
         Infinite waits            01/01/70 00:00      
            Actually it is time            01/01/70 00:00      
         Another opposite            01/01/70 00:00      
            and ..            01/01/70 00:00      
               Whoaaaaaa.....            01/01/70 00:00      
               LCD Timeout            01/01/70 00:00      
      Code formatting - avoid TABs            01/01/70 00:00      
         Oh - sorry about that ...            01/01/70 00:00      
   Did you see this?            01/01/70 00:00      

Back to Subject List