mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 22:35:23 +03:00
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:
commit
494c77e684
1 changed files with 1 additions and 1 deletions
|
@ -944,7 +944,7 @@ void escEnablePassthrough(serialPort_t *escPassthroughPort, uint16_t output, uin
|
||||||
else {
|
else {
|
||||||
uint8_t first_output = 0;
|
uint8_t first_output = 0;
|
||||||
for (int i = 0; i < USABLE_TIMER_CHANNEL_COUNT; i++) {
|
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;
|
first_output = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue