mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-14 20:10:18 +03:00
Fixed MSP command to send Dshot commands.
This commit is contained in:
parent
d43e06d3e3
commit
0b81b26ce0
2 changed files with 0 additions and 7 deletions
|
@ -3850,12 +3850,6 @@ static void cliDshotProg(const char *cmdName, char *cmdline)
|
||||||
// pwmDisableMotors();
|
// pwmDisableMotors();
|
||||||
motorDisable();
|
motorDisable();
|
||||||
|
|
||||||
if (command == DSHOT_CMD_ESC_INFO) {
|
|
||||||
delay(5); // Wait for potential ESC telemetry transmission to finish
|
|
||||||
} else {
|
|
||||||
delay(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
firstCommand = false;
|
firstCommand = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3020,7 +3020,6 @@ static mspResult_e mspProcessInCommand(mspDescriptor_t srcDesc, int16_t cmdMSP,
|
||||||
for (uint8_t i = 0; i < commandCount; i++) {
|
for (uint8_t i = 0; i < commandCount; i++) {
|
||||||
const uint8_t commandIndex = sbufReadU8(src);
|
const uint8_t commandIndex = sbufReadU8(src);
|
||||||
dshotCommandWrite(motorIndex, getMotorCount(), commandIndex, commandType);
|
dshotCommandWrite(motorIndex, getMotorCount(), commandIndex, commandType);
|
||||||
delay(1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (DSHOT_CMD_TYPE_BLOCKING == commandType) {
|
if (DSHOT_CMD_TYPE_BLOCKING == commandType) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue