1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

Merge pull request #11672 from RoarFPV/issues/11424

Make sure to write dshot stop cmd to all other motors when targeting …
This commit is contained in:
J Blackman 2022-07-08 15:26:51 +10:00 committed by GitHub
commit ea7807c5f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);
}
}