Rev 1841 | Rev 1865 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1841 | Rev 1851 | ||
|---|---|---|---|
| Line 165... | Line 165... | ||
| 165 | 165 | ||
| 166 | #if IR_RX_ENABLE==1 |
166 | #if IR_RX_ENABLE==1 |
| 167 | /* When this timeout occurs a pulsetrain is complete */ |
167 | /* When this timeout occurs a pulsetrain is complete */ |
| 168 | ISR(IR_TIMEOUT_VECTOR) |
168 | ISR(IR_TIMEOUT_VECTOR) |
| 169 | { |
169 | { |
| 170 | for (uint8_t i=0; i < |
170 | for (uint8_t i=0; i < IR_SUPPORTED_NUM_CHANNELS; i++) |
| 171 | { |
171 | { |
| 172 | /* If more than |
172 | /* If more than 2 edges were recevied */ |
| 173 | if (drvIrRxChannel[i].storeEnable == TRUE && drvIrRxChannel[i].rxlen > |
173 | if (drvIrRxChannel[i].storeEnable == TRUE && drvIrRxChannel[i].rxlen > 2) |
| 174 | { |
174 | { |
| 175 | /* Notify the application that a pulse train has been received. */ |
175 | /* Notify the application that a pulse train has been received. */ |
| 176 | drvIrRxChannel[i].callback(i, drvIrRxChannel[i].rxbuf, drvIrRxChannel[i].rxlen); |
176 | drvIrRxChannel[i].callback(i, drvIrRxChannel[i].rxbuf, drvIrRxChannel[i].rxlen); |
| 177 | } |
177 | } |
| 178 | 178 | ||