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:
Mimoja 2020-07-19 00:18:28 +02:00 committed by GitHub
parent f8f01c9fa3
commit 43a7f93723
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -248,9 +248,9 @@ FAST_CODE_NOINLINE bool pwmStartDshotMotorUpdate(void)
}
#ifdef USE_DSHOT_TELEMETRY_STATS
updateDshotTelemetryQuality(&dshotTelemetryQuality[i], validTelemetryPacket, currentTimeMs);
}
#endif
}
}
pwmDshotSetDirectionOutput(&dmaMotors[i]);
}
inputStampUs = 0;