mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-21 07:15:18 +03:00
Isolate MSP_MOTOR from pwm_output (pwmGetMotors)
This commit is contained in:
parent
b310f9b348
commit
11994e6ab8
5 changed files with 21 additions and 2 deletions
|
@ -962,8 +962,8 @@ static bool mspProcessOutCommand(uint8_t cmdMSP, sbuf_t *dst)
|
|||
|
||||
case MSP_MOTOR:
|
||||
for (unsigned i = 0; i < 8; i++) {
|
||||
#ifdef USE_PWM_OUTPUT
|
||||
if (i >= MAX_SUPPORTED_MOTORS || !pwmGetMotors()[i].enabled) {
|
||||
#ifdef USE_MOTOR
|
||||
if (i >= MAX_SUPPORTED_MOTORS || !motorIsMotorEnabled(i)) {
|
||||
sbufWriteU16(dst, 0);
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue