Rev 379 | Rev 383 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 379 | Rev 380 | ||
---|---|---|---|
Line 191... | Line 191... | ||
191 | if(!SPI_RxBuffer_Request) // block writing to FromFlightCtrl on reading access |
191 | if(!SPI_RxBuffer_Request) // block writing to FromFlightCtrl on reading access |
192 | { |
192 | { |
193 | memcpy((u8 *) &FromFlightCtrl, (u8 *) SPI_RxBuffer, sizeof(FromFlightCtrl)); |
193 | memcpy((u8 *) &FromFlightCtrl, (u8 *) SPI_RxBuffer, sizeof(FromFlightCtrl)); |
194 | SPI_RxBuffer_Request = 1; |
194 | SPI_RxBuffer_Request = 1; |
195 | } |
195 | } |
196 | else |
- | |
197 | { |
- | |
198 | DebugOut.Analog[16]++; |
- | |
199 | } |
- | |
200 | // reset timeout counter on good packet |
196 | // reset timeout counter on good packet |
201 | SPI0_Timeout = SetDelay(SPI0_TIMEOUT); |
197 | SPI0_Timeout = SetDelay(SPI0_TIMEOUT); |
202 | DebugOut.Analog[13]++; |
198 | DebugOut.Analog[13]++; |
203 | } |
199 | } |
204 | else // bad checksum byte |
200 | else // bad checksum byte |