1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 00:05:33 +03:00

Added support for DShot ESC settings to CLI.

This commit is contained in:
mikeller 2017-02-13 22:28:30 +13:00
parent 79b4badf62
commit 85b002bb73
7 changed files with 103 additions and 41 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) {