mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 08:15:30 +03:00
add a comment
This commit is contained in:
parent
d2147d4ece
commit
0bb52bd9b8
1 changed files with 1 additions and 0 deletions
|
@ -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 there is a command ready to go overwrite the value and send that instead*/
|
||||||
if (pwmDshotCommandIsProcessing()) {
|
if (pwmDshotCommandIsProcessing()) {
|
||||||
value = pwmGetDshotCommand(index);
|
value = pwmGetDshotCommand(index);
|
||||||
|
// reset telemetry debug statistics every time telemetry is enabled
|
||||||
if (value == DSHOT_CMD_SIGNAL_LINE_CONTINUOUS_ERPM_TELEMETRY) {
|
if (value == DSHOT_CMD_SIGNAL_LINE_CONTINUOUS_ERPM_TELEMETRY) {
|
||||||
dshotInvalidPacketCount = 0;
|
dshotInvalidPacketCount = 0;
|
||||||
readDoneCount = 0;
|
readDoneCount = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue