From 0bb52bd9b8040302c6472fa1718df6b1d82b427a Mon Sep 17 00:00:00 2001 From: Thorsten Laux Date: Fri, 1 Mar 2019 10:00:41 +0100 Subject: [PATCH] add a comment --- src/main/drivers/pwm_output_dshot_shared.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/drivers/pwm_output_dshot_shared.h b/src/main/drivers/pwm_output_dshot_shared.h index 80219eaaef..8da4014e9a 100644 --- a/src/main/drivers/pwm_output_dshot_shared.h +++ b/src/main/drivers/pwm_output_dshot_shared.h @@ -72,6 +72,7 @@ FAST_CODE void pwmWriteDshotInt(uint8_t index, uint16_t value) /*If there is a command ready to go overwrite the value and send that instead*/ if (pwmDshotCommandIsProcessing()) { value = pwmGetDshotCommand(index); + // reset telemetry debug statistics every time telemetry is enabled if (value == DSHOT_CMD_SIGNAL_LINE_CONTINUOUS_ERPM_TELEMETRY) { dshotInvalidPacketCount = 0; readDoneCount = 0;