1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-20 23:05:19 +03:00

Fix for old telemetry sent to RPM filter during a re-arming sequence

This commit is contained in:
iso9660 2022-09-23 06:50:47 +02:00
parent ce3354d1d3
commit 7a5b60e8c1
3 changed files with 9 additions and 0 deletions

View file

@ -509,9 +509,11 @@ void tryArm(void)
return;
}
#if defined(USE_ESC_SENSOR) && defined(USE_DSHOT_TELEMETRY)
// Try to activate extended DSHOT telemetry only if no esc sensor exists and dshot telemetry is active
if (isMotorProtocolDshot() && !featureIsEnabled(FEATURE_ESC_SENSOR) && motorConfig()->dev.useDshotTelemetry) {
dshotCleanTelemetryData();
dshotCommandWrite(ALL_MOTORS, getMotorCount(), DSHOT_CMD_EXTENDED_TELEMETRY_ENABLE, DSHOT_CMD_TYPE_INLINE);
}
#endif