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
|
@ -248,9 +248,9 @@ FAST_CODE_NOINLINE bool pwmStartDshotMotorUpdate(void)
|
||||||
}
|
}
|
||||||
#ifdef USE_DSHOT_TELEMETRY_STATS
|
#ifdef USE_DSHOT_TELEMETRY_STATS
|
||||||
updateDshotTelemetryQuality(&dshotTelemetryQuality[i], validTelemetryPacket, currentTimeMs);
|
updateDshotTelemetryQuality(&dshotTelemetryQuality[i], validTelemetryPacket, currentTimeMs);
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
}
|
||||||
pwmDshotSetDirectionOutput(&dmaMotors[i]);
|
pwmDshotSetDirectionOutput(&dmaMotors[i]);
|
||||||
}
|
}
|
||||||
inputStampUs = 0;
|
inputStampUs = 0;
|
||||||
|
|
Loading…
Reference in New Issue