mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Fix build for statistics-disabled DSHOT telemetry
The USE_DSHOT_TELEMETRY_STATS define was is gating a closing bracket '}', so that the scopes are breaking in case telemetry stats are not enabled. This commit fixes this behaviour by moving the closing bracket out of the ifdef. Signed-off-by: Mimoja <git@mimoja.de>
This commit is contained in:
parent
f8f01c9fa3
commit
43a7f93723
1 changed files with 1 additions and 1 deletions
|
@ -248,8 +248,8 @@ FAST_CODE_NOINLINE bool pwmStartDshotMotorUpdate(void)
|
|||
}
|
||||
#ifdef USE_DSHOT_TELEMETRY_STATS
|
||||
updateDshotTelemetryQuality(&dshotTelemetryQuality[i], validTelemetryPacket, currentTimeMs);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
pwmDshotSetDirectionOutput(&dmaMotors[i]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue