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

Remove reference to TIMER_OUTPUT_ENABLED

This commit is contained in:
jflyper 2017-08-30 00:59:43 +09:00
parent 5d3650d4fa
commit 8c3d8c3a46

View file

@ -944,7 +944,7 @@ void escEnablePassthrough(serialPort_t *escPassthroughPort, uint16_t output, uin
else {
uint8_t first_output = 0;
for (int i = 0; i < USABLE_TIMER_CHANNEL_COUNT; i++) {
if (timerHardware[i].output & TIMER_OUTPUT_ENABLED) {
if (timerHardware[i].usageFlags & TIM_USE_MOTOR) {
first_output = i;
break;
}