Subversion Repositories HomeAutomation

Rev

Rev 632 | Rev 637 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 632 Rev 634
Line 186... Line 186...
186
                            // Woops, error. 
186
                            // Woops, error. 
187
                            Console.WriteLine("Timeout while waiting for data ack.");
187
                            Console.WriteLine("Timeout while waiting for data ack.");
188
                            errorOccured = true;
188
                            errorOccured = true;
189
                            pgs = dState.SEND_RESET;
189
                            pgs = dState.SEND_RESET;
190
                        }
190
                        }
191
                        if ((Environment.TickCount - t2) > TIMEOUT_SHORT_MS) {
191
                        else if ((Environment.TickCount - t2) > TIMEOUT_SHORT_MS) {
192
                            // Woops, error. 
192
                            // Woops, error. 
193
                            Console.Write(":");
193
                            Console.Write(":");
194
                            byteSent -= 6;
194
                            byteSent -= 6;
195
                            pgs = dState.SEND_PGM_DATA;
195
                            pgs = dState.SEND_PGM_DATA;
196
                            break;
196
                            break;