1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

Merge pull request #2393 from mikeller/added_dshot_esc_command_support

Added support for DShot ESC settings to CLI.
This commit is contained in:
borisbstyle 2017-03-02 22:52:06 +01:00 committed by GitHub
commit 16309b1a2c
7 changed files with 146 additions and 47 deletions

View file

@ -230,7 +230,7 @@ static void mspFc4waySerialCommand(sbuf_t *dst, sbuf_t *src, mspPostProcessFnPtr
case PROTOCOL_KISS:
case PROTOCOL_KISSALL:
case PROTOCOL_CASTLE:
if (escPortIndex < USABLE_TIMER_CHANNEL_COUNT || (escMode == PROTOCOL_KISS && escPortIndex == 255)) {
if (escPortIndex < getMotorCount() || (escMode == PROTOCOL_KISS && escPortIndex == ALL_ESCS)) {
sbufWriteU8(dst, 1);
if (mspPostProcessFn) {