1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-26 01:35:41 +03:00

Make SPI access chaining more resilient to driver coding errors as fixed in 8474a6eb

This commit is contained in:
Steve Evans 2022-10-16 19:57:00 +01:00
parent 8474a6eb7d
commit b18a114e45
3 changed files with 7 additions and 4 deletions

View file

@ -415,6 +415,7 @@ static void spiIrqHandler(const extDevice_t *dev)
// The end of the segment list has been reached
bus->curSegment = nextSegments;
nextSegment->u.link.dev = NULL;
nextSegment->u.link.segments = NULL;
spiSequenceStart(nextDev);
} else {
// The end of the segment list has been reached, so mark transactions as complete