Rev 761 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 761 | Rev 762 | ||
---|---|---|---|
Line 112... | Line 112... | ||
112 | //sync gap? (3.52 ms < signal < 25.6 ms) |
112 | //sync gap? (3.52 ms < signal < 25.6 ms) |
113 | if((signal > 1100) && (signal < 8000)) |
113 | if((signal > 1100) && (signal < 8000)) |
114 | { |
114 | { |
115 | // if a sync gap happens and there where at least 4 channels decoded before |
115 | // if a sync gap happens and there where at least 4 channels decoded before |
116 | // then the NewPpmData flag is reset indicating valid data in the PPM_in[] array. |
116 | // then the NewPpmData flag is reset indicating valid data in the PPM_in[] array. |
117 | if(index >= 4) NewPpmData = 0; // Null means NewData |
117 | if(index >= 4) NewPpmData = 0; // Null means NewData for the first 4 channels |
118 | // synchronize channel index |
118 | // synchronize channel index |
119 | index = 1; |
119 | index = 1; |
120 | } |
120 | } |
121 | else // within the PPM frame |
121 | else // within the PPM frame |
122 | { |
122 | { |