1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 13:25:30 +03:00

invert csum in telemetry

This commit is contained in:
Thorsten Laux 2019-05-02 14:05:38 +02:00
parent 4a7be33c25
commit f1e9c9f19a
3 changed files with 2 additions and 31 deletions

View file

@ -209,20 +209,6 @@ static IO_t busSwitchResetPin = IO_NONE;
}
#endif
#ifdef USE_DSHOT_TELEMETRY
void activateDshotTelemetry(struct dispatchEntry_s* self)
{
if (!ARMING_FLAG(ARMED) && !isDshotTelemetryActive()) {
pwmWriteDshotCommand(ALL_MOTORS, getMotorCount(), DSHOT_CMD_SIGNAL_LINE_CONTINUOUS_ERPM_TELEMETRY, false);
dispatchAdd(self, 1e6); // check again in 1 second
}
}
dispatchEntry_t activateDshotTelemetryEntry =
{
activateDshotTelemetry, 0, NULL, false
};
#endif
void init(void)
{
@ -794,13 +780,6 @@ void init(void)
setArmingDisabled(ARMING_DISABLED_BOOT_GRACE_TIME);
#ifdef USE_DSHOT_TELEMETRY
if (motorConfig()->dev.useDshotTelemetry) {
dispatchEnable();
dispatchAdd(&activateDshotTelemetryEntry, 5000000);
}
#endif
fcTasksInit();
systemState |= SYSTEM_STATE_READY;