mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
Fixed Dshot command check on non-F7.
This commit is contained in:
parent
11d8171c36
commit
906a4bcb78
2 changed files with 9 additions and 7 deletions
|
@ -97,8 +97,10 @@ void pwmCompleteDshotMotorUpdate(uint8_t motorCount)
|
|||
UNUSED(motorCount);
|
||||
|
||||
/* If there is a dshot command loaded up, time it correctly with motor update*/
|
||||
if (!pwmProcessDshotCommand(motorCount)) {
|
||||
return; //Skip motor update
|
||||
if (pwmIsProcessingDshotCommand()) {
|
||||
if (!pwmProcessDshotCommand(motorCount)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < dmaMotorTimerCount; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue