1
0
Fork 0
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:
Alexey Stankevich 2018-11-29 23:30:52 +03:00
parent e8a4016134
commit 160f240ea0

View file

@ -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;
} }