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