mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 08:15:30 +03:00
PPM and PWM now have their own ___ReadRawRC functions.
Because a required change for PWM disturbed the PPM mode.
This commit is contained in:
parent
95840ae512
commit
d2c40076db
3 changed files with 16 additions and 4 deletions
|
@ -339,6 +339,11 @@ void ppmInConfig(const timerHardware_t *timerHardwarePtr)
|
|||
timerChConfigCallbacks(timerHardwarePtr, &self->edgeCb, &self->overflowCb);
|
||||
}
|
||||
|
||||
uint16_t ppmRead(uint8_t channel)
|
||||
{
|
||||
return captures[channel];
|
||||
}
|
||||
|
||||
uint16_t pwmRead(uint8_t channel)
|
||||
{
|
||||
uint16_t capture = captures[channel];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue