From 99ad7bf5e88c8fba82729a7ac8b7658cd973c063 Mon Sep 17 00:00:00 2001 From: Steve Evans Date: Fri, 20 Nov 2020 16:15:10 +0000 Subject: [PATCH] Check output, not input buffer --- src/main/drivers/dshot_bitbang.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/drivers/dshot_bitbang.c b/src/main/drivers/dshot_bitbang.c index 76ca02018f..a7fd38bf6a 100644 --- a/src/main/drivers/dshot_bitbang.c +++ b/src/main/drivers/dshot_bitbang.c @@ -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; } }