mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 22:35:23 +03:00
Delete unused code.
This commit is contained in:
parent
8d5b2283ec
commit
13af9f8ff9
1 changed files with 0 additions and 4 deletions
|
@ -214,10 +214,7 @@ static void ppmEdgeCallback(uint8_t port, captureCompare_t capture)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static uint8_t pwmChannelsReceived = 0;
|
|
||||||
|
|
||||||
#define MAX_MISSED_PWM_EVENTS 10
|
#define MAX_MISSED_PWM_EVENTS 10
|
||||||
#define MAX_MISSED_PWM_EVENT_COUNTER (MAX_MISSED_PWM_EVENTS * PWM_TIMER_PERIOD)
|
|
||||||
|
|
||||||
extern uint16_t debug[4];
|
extern uint16_t debug[4];
|
||||||
static void pwmOverflowCallback(uint8_t port, captureCompare_t capture)
|
static void pwmOverflowCallback(uint8_t port, captureCompare_t capture)
|
||||||
|
@ -252,7 +249,6 @@ static void pwmEdgeCallback(uint8_t port, captureCompare_t capture)
|
||||||
// switch state
|
// switch state
|
||||||
pwmInputPort->state = 0;
|
pwmInputPort->state = 0;
|
||||||
pwmICConfig(timerHardwarePtr->tim, timerHardwarePtr->channel, TIM_ICPolarity_Rising);
|
pwmICConfig(timerHardwarePtr->tim, timerHardwarePtr->channel, TIM_ICPolarity_Rising);
|
||||||
pwmChannelsReceived |= (1 << pwmInputPort->channel);
|
|
||||||
pwmInputPort->missedEvents = 0;
|
pwmInputPort->missedEvents = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue