mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
Cleaned up debug code in Dshot.
This commit is contained in:
parent
f91783571a
commit
834ce7c5eb
3 changed files with 6 additions and 20 deletions
|
@ -19,9 +19,10 @@
|
|||
*/
|
||||
|
||||
|
||||
#include <math.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
|
@ -60,8 +61,6 @@ motorDmaOutput_t dmaMotors[MAX_SUPPORTED_MOTORS];
|
|||
#endif
|
||||
|
||||
#ifdef USE_DSHOT_TELEMETRY
|
||||
|
||||
// TODO remove once debugging no longer needed
|
||||
FAST_DATA_ZERO_INIT uint32_t inputStampUs;
|
||||
|
||||
FAST_DATA_ZERO_INIT dshotDMAHandlerCycleCounters_t dshotDMAHandlerCycleCounters;
|
||||
|
@ -236,7 +235,7 @@ FAST_CODE_NOINLINE bool pwmStartDshotMotorUpdate(void)
|
|||
} else {
|
||||
dshotTelemetryState.invalidPacketCount++;
|
||||
if (i == 0) {
|
||||
memcpy(dshotTelemetryState.inputBuffer,dmaMotors[i].dmaBuffer,sizeof(dshotTelemetryState.inputBuffer));
|
||||
memcpy(dshotTelemetryState.inputBuffer, dmaMotors[i].dmaBuffer, sizeof(dshotTelemetryState.inputBuffer));
|
||||
}
|
||||
}
|
||||
#ifdef USE_DSHOT_TELEMETRY_STATS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue