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:
commit
cfbfdf32e8
5 changed files with 450 additions and 486 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue