1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-25 17:25:18 +03:00

Merge pull request #3167 from shellixyz/update_msp_output_mapping

Update MSP2_INAV_OUTPUT_MAPPING to exclude inputs
This commit is contained in:
Konstantin Sharlaimov 2018-05-08 15:22:41 +10:00 committed by GitHub
commit d5f3309fb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1350,7 +1350,8 @@ static bool mspFcProcessOutCommand(uint16_t cmdMSP, sbuf_t *dst, mspPostProcessF
case MSP2_INAV_OUTPUT_MAPPING:
for (uint8_t i = 0; i < USABLE_TIMER_CHANNEL_COUNT; ++i)
sbufWriteU8(dst, timerHardware[i].usageFlags);
if (!(timerHardware[i].usageFlags & (TIM_USE_PPM | TIM_USE_PWM)))
sbufWriteU8(dst, timerHardware[i].usageFlags);
break;
default: