mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-25 17:25:18 +03:00
Fix PPM input initialization
This commit is contained in:
parent
e8a4016134
commit
160f240ea0
1 changed files with 2 additions and 2 deletions
|
@ -344,7 +344,7 @@ void pwmInConfig(const timerHardware_t *timerHardwarePtr, uint8_t channel)
|
||||||
{
|
{
|
||||||
pwmInputPort_t *self = &pwmInputPorts[channel];
|
pwmInputPort_t *self = &pwmInputPorts[channel];
|
||||||
|
|
||||||
TCH_t * tch = timerGetTCH(timerHardware);
|
TCH_t * tch = timerGetTCH(timerHardwarePtr);
|
||||||
if (tch == NULL) {
|
if (tch == NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -370,7 +370,7 @@ void pwmInConfig(const timerHardware_t *timerHardwarePtr, uint8_t channel)
|
||||||
|
|
||||||
void ppmInConfig(const timerHardware_t *timerHardwarePtr)
|
void ppmInConfig(const timerHardware_t *timerHardwarePtr)
|
||||||
{
|
{
|
||||||
TCH_t * tch = timerGetTCH(timerHardware);
|
TCH_t * tch = timerGetTCH(timerHardwarePtr);
|
||||||
if (tch == NULL) {
|
if (tch == NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue