Skip to content

Commit

Permalink
Fix build for statistics-disabled DSHOT telemetry
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mimoja committed Jul 18, 2020
1 parent f8f01c9 commit 43a7f93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/drivers/pwm_output_dshot_shared.c
Expand Up @@ -248,8 +248,8 @@ FAST_CODE_NOINLINE bool pwmStartDshotMotorUpdate(void)
}
#ifdef USE_DSHOT_TELEMETRY_STATS
updateDshotTelemetryQuality(&dshotTelemetryQuality[i], validTelemetryPacket, currentTimeMs);
}
#endif
}
}
pwmDshotSetDirectionOutput(&dmaMotors[i]);
}
Expand Down

0 comments on commit 43a7f93

Please sign in to comment.