1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-26 01:35:41 +03:00

Merge pull request #3471 from mikeller/added_motor_255_to_cli

Added command 'motor 255' (all motors) to CLI.
This commit is contained in:
Michael Keller 2017-07-09 19:38:20 +12:00 committed by mikeller
commit cfbfdf32e8
5 changed files with 450 additions and 486 deletions

View file

@ -194,7 +194,7 @@ typedef enum {
#define ESC_4WAY 0xff
uint8_t escMode;
uint8_t escPortIndex = 0;
uint8_t escPortIndex;
#ifdef USE_ESCSERIAL
static void mspEscPassthroughFn(serialPort_t *serialPort)
@ -233,7 +233,7 @@ static void mspFc4waySerialCommand(sbuf_t *dst, sbuf_t *src, mspPostProcessFnPtr
case PROTOCOL_KISS:
case PROTOCOL_KISSALL:
case PROTOCOL_CASTLE:
if (escPortIndex < getMotorCount() || (escMode == PROTOCOL_KISS && escPortIndex == ALL_ESCS)) {
if (escPortIndex < getMotorCount() || (escMode == PROTOCOL_KISS && escPortIndex == ALL_MOTORS)) {
sbufWriteU8(dst, 1);
if (mspPostProcessFn) {