From 8c3d8c3a46f016ec7413794ee1f18ec5097d3c29 Mon Sep 17 00:00:00 2001 From: jflyper Date: Wed, 30 Aug 2017 00:59:43 +0900 Subject: [PATCH] Remove reference to TIMER_OUTPUT_ENABLED --- src/main/drivers/serial_escserial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/drivers/serial_escserial.c b/src/main/drivers/serial_escserial.c index 07bb0b81f..31bd3b720 100644 --- a/src/main/drivers/serial_escserial.c +++ b/src/main/drivers/serial_escserial.c @@ -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; }