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

Make sure to write dshot stop cmd to all other motors when targeting less than max motor count

This commit is contained in:
RoarFPV 2022-06-17 20:53:01 -07:00
parent b28b07eb95
commit 6a7d2c3788

View file

@ -223,6 +223,8 @@ void dshotCommandWrite(uint8_t index, uint8_t motorCount, uint8_t command, dshot
motorDmaOutput_t *const motor = getMotorDmaOutput(i);
motor->protocolControl.requestTelemetry = true;
motorGetVTable().writeInt(i, command);
} else {
motorGetVTable().writeInt(i, DSHOT_CMD_MOTOR_STOP);
}
}