Merge pull request #4002 from jflyper/bfdev-remove-reference-to-TIMER_OUTPUT_ENABLED

Fix serial_escserial.c to use TIM_USE_MOTOR instead of TIMER_OUTPUT_ENABLED
This commit is contained in:
Martin Budden 2017-08-29 17:41:46 +01:00 committed by GitHub
commit 494c77e684
1 changed files with 1 additions and 1 deletions

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;
}