1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 12:25:20 +03:00

Check output, not input buffer

This commit is contained in:
Steve Evans 2020-11-20 16:15:10 +00:00 committed by Steve Evans
parent 313a5b193b
commit 99ad7bf5e8

View file

@ -595,7 +595,7 @@ static void bbUpdateComplete(void)
// Only clean the buffer once. If all motors are on a common port they'll share a buffer.
bool clean = false;
for (int i = 0; i < motorIndex; i++) {
if (bbMotors[motorIndex].bbPort->portInputBuffer == bbMotors[i].bbPort->portInputBuffer) {
if (bbMotors[motorIndex].bbPort->portOutputBuffer == bbMotors[i].bbPort->portOutputBuffer) {
clean = true;
}
}